struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Adams <padam...@gmail.com>
Subject Struts2 threading in a Java EE application server environment
Date Tue, 19 Oct 2010 03:02:40 GMT
Hi,
I'm trying to help a customer that is using Struts2 within a Java
EE-compliant application server.  Unfortunately, I have no real
experience with Struts2 so I was hoping someone on this mailing list
could offer some help.

The main issue that I'm dealing with is this...   An HTTP request is
received by the app server's servlet container and because of the
configuration inside the webapp's web.xml file, struts2 is invoking an
action class's "execute()" method, but it appears to be doing this on
a "new" thread (i.e. a thread other than the servlet container's
"worker" thread).

First of all, is this normal and expected?   If so, is it controllable
by the user via some sort of configuration?      Also, how does the
struts2 framework deal with thread context information?
Specifically, when creating new threads in a Java EE environment, the
thread context information needs to be copied from the original thread
to the new thread, otherwise various Java EE components will have
unpredictable results.

Thanks in advance for any help!

-- 
Phil Adams

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


Mime
View raw message