What I mean is that injecting something in ExecAndWaitInterceptor
which has brought scope can rise concurrency issue because the same
bean can be used in two different threads (ExecAndWaitInterceptor
thread and request thread). I would rather pack whatever is needed by
ExecAndWaitInterceptor and pass to it as a value object and inject
just stateless services.

That's what I mean by repackaging - to have my own context (a map of
values, a value bean, etc) that will be passed to
ExecAndWaitInterceptor and used by it in separation from other
threads.

And interceptors are singletons per package (<package/> tag in
struts.xml) and even worst ExecAndWaitInterceptor creates its own
thread ;-)


Regards
-- 
Łukasz http://www.lenart.org.pl/
mobile +48 606 323 122, office +27 11 0838747
Warszawa JUG conference - Confitura http://confitura.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to