struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: Struts2 threading in a Java EE application server environment
Date Tue, 19 Oct 2010 12:11:49 GMT
2010/10/19 Phil Adams <padamstx@gmail.com>:
> Hi Lukasz,
> Thanks for the information... I read about ExecuteAndWaitInterceptor
> but it seems as though that must create a new thread as well, since it
> also uses the BackgroundProcess class to execute the action, right?
> In this particular situation, I need to find a way for the action's
> execute() method to be called on the servlet container's original
> thread, rather than on some new thread created by Struts.

The only option is to write a custom interceptor that will base on
ExecuteAndWaitInterceptor but it will use the servlet container's
mechanism to create threads. There is no such functionality in EAWI.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia 2010 http://javarsovia.pl

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


Mime
View raw message