struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: Using Spring proxied Session Beans with the ExecAndWaitInterceptor
Date Tue, 15 May 2012 07:00:06 GMT
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-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message