users@glassfish.java.net

Re: In memory session management Problem

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Jun 2009 05:04:30 PDT

Hi Naveen, thanks for the pointer to this thread.

I'm re-posting my question from nabble: http://www.nabble.com/clusterjsp-sample-losing-session-data-tt18919597.html#a23978584 .

Hi All,

I downloaded Glassfish v2.1.1-b17 from: https://glassfish.dev.java.net/downloads/v2.1.1-b17.html . Then I repeated the same test that I was having a problem with for v2.1-b60e, which is:

Create a cluster with two instances, and deploy the clusterjsp web-app from the samples (In my case I specified a context root of '/'), with availability enabled.

Then, point a browser to: http://localhost:38080/HaJsp.jsp

Now add some session data (at this point I verify that the data is replicated by browsing to the same page on port 38081, as in the tutorial).

Finally, revisit the original page. Note the session data is there. Refresh the page a few times, data still there. Then, hold down 'refresh' in order to re-request the page as fast as the browser is able. After a few moments of this, I notice that the session data disappears (and the session id has changed). Ie. the original session gets lost and a new one takes its place.

So this behaviour is still the same for me even using v2.1.1-b17. Is this the bug in question here? https://glassfish.dev.java.net/issues/show_bug.cgi?id=5574

Does anyone know if this issue should be fixed, and if so, for which version of glassfish?

Cheers,
Jesse.
[Message sent by forum member 'nzjess' (nzjess)]

http://forums.java.net/jive/thread.jspa?messageID=350696