Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
"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: Fri Jul 04 05:35:35 EDT 2025

Powered by FUDForum. Page generated in 0.30033 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top