Re: Does Struts 2 support clustering?

2008-04-11 Thread mojoRising
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

RE: Does Struts 2 support clustering?

2008-04-11 Thread Brad A Cupit
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

Re: Does Struts 2 support clustering?

2008-04-11 Thread Guillaume Bilodeau
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

Re: Does Struts 2 support clustering?

2008-04-11 Thread mojoRising
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

Re: Does Struts 2 support clustering?

2008-04-11 Thread Guillaume Bilodeau
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,

Re: Does Struts 2 support clustering?

2008-04-10 Thread Ian Roughley
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:

Re: Does Struts 2 support clustering?

2008-04-10 Thread Dave Newton
--- 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

Re: Does Struts 2 support clustering?

2008-04-10 Thread mojoRising
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 /

Re: Does Struts 2 support clustering?

2008-04-10 Thread Randy Burgess
. 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