Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] react on remote model changes (IListener (CDOView) notifyEvent consumption)
[CDO] react on remote model changes [message #930417] Tue, 02 October 2012 05:47 Go to previous message
Christian Stellwag is currently offline Christian Stellwag
Messages: 37
Registered: July 2009
Location: Munich
Member
Hello Forum Readers,

I need some clarification on this topic.
Using CDO version 4.0.99 in a client/server application (RCP) we need mechanism to update clients when underlying data was changed (usually by different user).

Our current implementation registers as IListener on the CDOView and receives
notifyEvent(IEvent) change notifications.

As I understood from reading forum entries and docu this is one out of 3 possibilities to get informed (CDOSession.addListener and object.eAdapter().add(yourAdapter) being the other 2).

From Debugging the application I learned that notifyEvent is called twice,
first time with IEvent being CDOViewInvalidationEvent carrying information about what has changed (getDirtyObjects() and getDetachedObjects()).
Second time with CDOViewAdaptersNotifiedEvent.

Since I somehow rely on both events in this sequence my questions are:
- Is there a guarantee that both event notifications are submitted?
- in exactly this order?

I didn't find any exact documentation about this. Does it exist? Where?

Would you rather recommend to only consume CDOViewInvalidationEvent and ignore CDOViewAdaptersNotifiedEvent?

Thanx in advance,
Chris
 
Read Message
Read Message
Read Message
Previous Topic:[CDO] NPE when requesting an EObject from a different view that is TRANSIENT
Next Topic:[CDO] Querying HREFs in the repository
Goto Forum:
  


Current Time: Wed May 22 17:03:30 EDT 2013

Powered by FUDForum. Page generated in 0.01755 seconds