Re: Interceptors and Thread safety

2009-07-08 Thread Jim Kiley
field variables related to the internal > processing of the class? i.e.. i have field variables only related to the > param tags only and nothing more. Now is the interceptor thread safe? > > Kindly clarify. > > > > -- > View this message in context: > http://www.nabb

Interceptors and Thread safety

2009-07-08 Thread ravi_eze
the class? i.e.. i have field variables only related to the param tags only and nothing more. Now is the interceptor thread safe? Kindly clarify. -- View this message in context: http://www.nabble.com/Interceptors-and-Thread-safety-tp24391223p24391223.html Sent from the Struts - User mailing lis

Re: Interceptors and thread-safety

2007-04-17 Thread Dale Newfield
Now I'm even more confused about where dependency injection happens for interceptors. My long running process is importing large numbers of documents into my system (extracted from an uploaded .zip file), which needs DB access throughout the process. As such, I use something based upon: htt

Re: Interceptors and thread-safety

2007-04-17 Thread Mark Menard
On 4/17/07 5:38 AM, "Dave Newton" <[EMAIL PROTECTED]> wrote: > --- Dale Newfield <[EMAIL PROTECTED]> wrote: >> [...] so that implies only a single simultaneous use > >> of a single execAndWait action per login? > >> From the execAndWait JavaDoc: > > """ > This interceptor works on a per-session

Re: Interceptors and thread-safety

2007-04-17 Thread Dave Newton
--- Dale Newfield <[EMAIL PROTECTED]> wrote: > [...] so that implies only a single simultaneous use > of a single execAndWait action per login? >From the execAndWait JavaDoc: """ This interceptor works on a per-session basis. That means that the same action name (myLongRunningAction, in the abov

Re: Interceptors and thread-safety

2007-04-16 Thread Dale Newfield
Laurie Harper wrote: Likewise, should two different users both calling an execAndWait action be able to co-exist, or will they mess with each other up? One would hope the former ;-) execAndWait obeys the thread-safety requirement, so there shouldn't be any collisions on a request-by-request b

Re: Interceptors and thread-safety

2007-04-16 Thread Laurie Harper
Dale Newfield wrote: Shahak Nagiel wrote: This was my concern exactly; Is a separate interceptor instance shared among all references to each action, or more broadly just a Struts-wide singleton? For example, if you configure an execAndWait for both actions "foo" and "bar", with delays of 2

Re: Interceptors and thread-safety

2007-04-16 Thread Laurie Harper
Dave Newton wrote: --- Laurie Harper <[EMAIL PROTECTED]> wrote: Shahak Nagiel wrote: So, how can these [interceptors] be thread-safe if new Interceptors aren't being instantiated for every request? Because the parameters don't come from (or vary with) the request. Just to add on/clarify a

Re: Interceptors and thread-safety

2007-04-16 Thread Dale Newfield
Shahak Nagiel wrote: This was my concern exactly; Is a separate interceptor instance shared among all references to each action, or more broadly just a Struts-wide singleton? For example, if you configure an execAndWait for both actions "foo" and "bar", with delays of 2 and 4, respectively, wi

Re: Interceptors and thread-safety

2007-04-16 Thread Shahak Nagiel
MAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, April 16, 2007 6:33:03 AM Subject: Re: Interceptors and thread-safety --- Laurie Harper <[EMAIL PROTECTED]> wrote: > Shahak Nagiel wrote: >> So, how can these [interceptors] be thread-safe if >> new Interceptors aren

Re: Interceptors and thread-safety

2007-04-16 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Shahak Nagiel wrote: >> So, how can these [interceptors] be thread-safe if >> new Interceptors aren't being instantiated for every >> request? > Because the parameters don't come from (or vary > with) the request. Just to add on/clarify a little bit

Re: Interceptors and thread-safety

2007-04-15 Thread Laurie Harper
Shahak Nagiel wrote: The "Writing Interceptors" guide pretty clearly states that "Interceptors are shared between requests and must be thread-safe." However, there are some Interceptors--such as execAndWait and roles--which accept parameters (e.g. "delay" and "allowedRoles") and which, ostens