Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to access sessions ?
How to access sessions ? [message #508558] Tue, 19 January 2010 12:47 Go to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi there, I'm qutie new to RAP, so I hope this has not been asked before. Did not find anything.

Guess my RAP application receives some global event (from a JMS Message) and I now want to update all users views the are subject to this message. How can I iterate through all my users Displays/Workbenches ?

Regards Thomas
Re: How to access sessions ? [message #508564 is a reply to message #508558] Tue, 19 January 2010 12:54 Go to previous messageGo to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
"Thomas Kratz" <eiswind@googlemail.com> schrieb im Newsbeitrag
news:hj49kg$l56$1@build.eclipse.org...
> Hi there, I'm qutie new to RAP, so I hope this has not been asked before.
> Did not find anything.
>
> Guess my RAP application receives some global event (from a JMS Message)
> and I now want to update all users views the are subject to this message.
> How can I iterate through all my users Displays/Workbenches ?
>
> Regards Thomas

Hi Thomas,

I guess a better approach would be letting each application subscribe to a
topic and than react on messages in that topic.

Regards, Niels
Re: How to access sessions ? [message #508577 is a reply to message #508564] Tue, 19 January 2010 13:50 Go to previous messageGo to next message
Thomas Kratz is currently offline Thomas KratzFriend
Messages: 165
Registered: July 2009
Senior Member
Hi Niels,

but its a single application. It has a single applictaion model thats shared by multiple users.

Regards Thomas
Re: How to access sessions ? [message #508595 is a reply to message #508577] Tue, 19 January 2010 10:08 Go to previous messageGo to next message
Niels Lippke is currently offline Niels LippkeFriend
Messages: 71
Registered: December 2009
Member
"Thomas Kratz" <eiswind@googlemail.com> schrieb im Newsbeitrag
news:hj4dap$b73$1@build.eclipse.org...
> Hi Niels,
>
> but its a single application. It has a single applictaion model thats
> shared by multiple users.
>
> Regards Thomas

I'm not sure, if I understand your environment. But if each user connects to
your server with his own browser, than you're launching a RAP application
for each user in which you can listen to whatever you (or the user) like.

A RAP application is, as far as I know, not able to handle multiple clients
in the same instance.

Niels
Re: How to access sessions ? [message #508810 is a reply to message #508558] Wed, 20 January 2010 12:36 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Thomas,

in a servlet environment in which RAP runs it is not inteded to iterate
over all sessions. As display/worbench "live inside" a session, the same
applied to them. If you still wish to do so, search to web for "list all
servlet sessions" (or similar).
As already suggested by Niels, it is recommended to let each session
subscribe to the "global" event source. If this is not applicable, you
may create a "multiplexer" that subscribes to the "global" event source
and provides an event itself to which each session can subscribe.

HTH
Rüdiger

P.S: I read you blog with interest; only for the most recent title I
would suggest to rename it to: Spring DM & Hibernate on *OSGi*: The
classloading hell ;)

--
Rüdiger Herrmann
http://eclipsesource.com

On 19.01.2010 13:47, Thomas Kratz wrote:
> Hi there, I'm qutie new to RAP, so I hope this has not been asked
> before. Did not find anything.
>
> Guess my RAP application receives some global event (from a JMS Message)
> and I now want to update all users views the are subject to this
> message. How can I iterate through all my users Displays/Workbenches ?
>
> Regards Thomas
Previous Topic:Key event handling in RAP
Next Topic:IFrame based Custom Widget and Incompatibility after RAP Target Update from 1.2.1 to 1.3M4
Goto Forum:
  


Current Time: Thu Oct 10 04:57:32 GMT 2024

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

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

Back to the top