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, will Struts instantiate a single execAndWait instance that keeps toggling delays between 2 and 4 (which is decidedly NOT thread-safe), or will it appropriately maintain two copies (one for foo's interceptor stack, one for bar's)? ----- Original Message ---- From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List <user@struts.apache.org> 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'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, this also implies that if you configure an interceptor for a specific action that an instance is created for that action, yes? Dave __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]