Thank you all for your help. I think we have it resolved and it was indeed
the WLCookieName parameter (JSESSIONID) in the weblogic plugin that was set
incorrectly. This has led to heavy discussion however with regards to this
question:
Is it really a good idea to implement the SessionAware
Would it not be perhaps safer and more efficient (and reduce the
possibility of clustered session replication issues) to simply
get the session yourself and set the
attributes directly into it?
the Map passed in when you implement SessionAware is just a wrapper
around the real session. So any
I suggest you have a look at the source code for the
org.apache.struts2.dispatcher.SessionMap, this is what gets injected to your
SessionAware action. As you'll see it's simply a class that implements the
java.util.Map interface and wraps a HttpSession. Calls to the get, put and
remove methods
Thank you very much. I found the source code and looked at it and now I
understand perfectly. I can't believe I missed all that info the SessionMap
object. So then once you have a sessionMap I assume that that the
sessionMap is the only thing you need for accessing the request, clearing
the
The injected sessionMap is sufficient if all you need to do is get, set and
remove session attributes. For other things like invalidating the session,
you should implement ServletRequestAware and retrieve the session using the
injected HttpServletRequest.
As you can see from the source code,
How are you clustering the HTTP session? Usually this involves
configuration of the app server so that it is stored in some type of
non-transient storage.
/Ian
mojoRising wrote:
We have struts running great on a single server but when we test in our
clustered environment there are problems:
--- mojoRising [EMAIL PROTECTED] wrote:
We have struts running great on a single server but when we test in our
clustered environment there are problems: The user is not staying on the
same server the initial request came in on, so their session is getting
lost. Does struts 2 support a
Thanks. That is what I suspect also but I am trying to weed out other
possibilities... can I then take your response to mean : Yes, Struts 2 DOES
support clustering?
newton.dave wrote:
This is almost certainly a server configuration issue; in general nothing
on
the framework /
. Web Applications Developer
Nuvox Communications
From: mojoRising [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Thu, 10 Apr 2008 13:45:11 -0700 (PDT)
To: user@struts.apache.org
Subject: Re: Does Struts 2 support clustering?
Thanks. That is what I
9 matches
Mail list logo