Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] inform clients about "special" events
[CDO] inform clients about "special" events [message #1009615] Fri, 15 February 2013 06:41 Go to next message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
Hi all,
Is there a way to send "special events" (for example, model changes, but not always model related) from the server to all connected clients (with a specific user id)?

Thanks!
Re: [CDO] inform clients about "special" events [message #1009639 is a reply to message #1009615] Fri, 15 February 2013 07:35 Go to previous messageGo to next message
Eike Stepper is currently offline Eike Stepper
Messages: 5481
Registered: July 2009
Senior Member
Am 15.02.2013 12:41, schrieb Erdal Karaca:
> Hi all,
> Is there a way to send "special events" (for example, model changes, but not always model related)
I really can't wrap my head around what are model changes that are not model related :P

Model changes are distributed via passive updates / view invalidation / EMF adapters.

> from the server to all connected clients (with a specific user id)?
There's CDORemoteSessionManager which you can obtain from session.getRemoteSessionManager() and use to send
CDORemoteSessionMessages to specific (or all) users. These users need to "subscribe" to these events in order to receive
CDORemoteSessionEvents.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO] inform clients about "special" events [message #1009647 is a reply to message #1009639] Fri, 15 February 2013 07:49 Go to previous message
Erdal Karaca is currently offline Erdal Karaca
Messages: 729
Registered: July 2009
Senior Member
"Events caused by model changes" and "events not model related"...

Eike Stepper wrote on Fri, 15 February 2013 13:35
Am 15.02.2013 12:41, schrieb Erdal Karaca:
> Hi all,
> Is there a way to send "special events" (for example, model changes, but not always model related)
I really can't wrap my head around what are model changes that are not model related Razz


I will have a look at the RemoteSessionManager/CDORemoteSessionEvents classses, thanks!
Previous Topic:Adding elements to AnyAttribute
Next Topic:[CDO] Invalidation notification for certain object types
Goto Forum:
  


Current Time: Thu Jul 24 10:45:30 EDT 2014

Powered by FUDForum. Page generated in 0.03315 seconds