web application and sessions [message #100990] |
Fri, 01 August 2008 11:59  |
Eclipse User |
|
|
|
Hi,
I've just deployed my rap application on Tomcat and tried to create
several session (launching the url several times in parallel)...
It appears that there is some problems in my code ;-(
To be sure, could you tell me which class is attended to be extend. I
would like to have a kind of MyApplication (called once at the deployement
of the webapp) and MySession (called each time the url is typed)...
I think that I confused some major concepts of EntryPoint,
WorkbenchAdvisor and "Activator" classes !
At this time, MySession extends EntryPoint and MyApplication is the
Activator of the plugin.
When I just launch it twice, it says that I cannot open multiple-browser
instances for the same session...
Thank you for helping me because I am very discouraged !
Emmanuel
|
|
|
Re: web application and sessions [message #101004 is a reply to message #100990] |
Sat, 02 August 2008 05:41   |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Emanuel,
Emmanuel wrote:
> Hi,
>
> I've just deployed my rap application on Tomcat and tried to create
> several session (launching the url several times in parallel)...
As sessions are usually bound to cookies, you need to access the
application with different browsers or from different systems to create
another session. If you open the application in several tabs or browser
windows of the same browser you get this error message. This has nothing
to do with your server-side code.
> It appears that there is some problems in my code ;-(
>
> To be sure, could you tell me which class is attended to be extend. I
> would like to have a kind of MyApplication (called once at the
> deployement of the webapp) and MySession (called each time the url is
> typed)...
>
> I think that I confused some major concepts of EntryPoint,
> WorkbenchAdvisor and "Activator" classes !
>
> At this time, MySession extends EntryPoint and MyApplication is the
> Activator of the plugin.
The EntryPoint is - as the name says - the entry point of a RAP
application. A new application doesn't necessarily mean a new session.
The Bundle activator methods are called at bundle startup and shutdown.
A bundle may contain more that one application.
If you like to store any objects in the session, have a look at
RWT#getSessionStore(). The Javadoc of SessionSingletonBase might also be
interesting. If this doesn't get you any further, you should describe
what exactly you are trying to achieve.
> When I just launch it twice, it says that I cannot open multiple-browser
> instances for the same session...
>
> Thank you for helping me because I am very discouraged !
Regards, Ralf
|
|
|
|
Powered by
FUDForum. Page generated in 0.07992 seconds