[CDO] react on remote model changes [message #930417] |
Tue, 02 October 2012 05:47  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07994 seconds