Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [rap-dev] Sessions in RAP

Hi,

as you were already guessing, bundles are shared between users (application scope), but states are handled with user sessions. This is an important difference to RCP, where you don't have to deal with session vs. application scope. RWT#getSessionStore() is an API method additional to the SWT stuff, that provides access to a session instance that can be used for state that must be stored in session scope. The session handling is done implicitly by the library and nothing the developer must take care of. The ISessionStore also provides access to the underlying HttpSession of the application server.

An other API that helps with session handling is the SessionSingleBase. This class can be used as super class for singletons with session scope. That means that an instance of such a class exists only once per user-session an looks from the developers point of view nearly as an classical singleton.

Hope that helps!

Ciao
Frank
 

-----Ursprüngliche Nachricht-----
Von: rap-dev-bounces@xxxxxxxxxxx [mailto:rap-dev-bounces@xxxxxxxxxxx] Im Auftrag von abo@xxxxxxxxxxxxx
Gesendet: Freitag, 14. September 2007 17:18
An: rap-dev@xxxxxxxxxxx
Betreff: [rap-dev] Sessions in RAP

Hi,

one more question I forgot:
How are sessions handled in RAP? Imagine several users access the same webpage. Bundles registered on the server are shared among them, right?
So I suspect, there is one Application running, but several sessions? Or is there one Instance of the Application for every user?
Some explanations would be wonderful

Greetings

Martin
_______________________________________________
rap-dev mailing list
rap-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/rap-dev


Back to the top