Skip to main content

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

Hi Martin,

you'reright. Every bundle is only loaded once and used for every user.
There are three different scopes:
application-scope: available for everyone
session-scope: data is shared only per session (see also SessionSingletonBase)
request-scope: only available within one request

As you can see, the Workbench for example is a session singleton which means that every session has it's own Workbench object. If you would apply the regular singleton pattern to such classes every user would use the same instance of the workbench. This would lead to real problems as every user could modify the state of other users.

Greets
 Benny

abo@xxxxxxxxxxxxx wrote:
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