> 
> 
> 
> > -----Original Message-----
> > From: Craig McClanahan [mailto:[EMAIL PROTECTED]
> > Sent: Monday, December 06, 2004 1:24 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT]Threads and Servlets Question
> >
> >
> > If you're running on a J2EE app server, or a servlet container
> > configured with appropriate security policies, you won't be allowed to
> > start a new thread.
> >

Actually this isn't true. If you have a jboss for example and using giop,
and create a new remote reference to a session bean, that you will
implicitely start a new thread (or a thread pool), because jacorb uses
separate thread pool for each connection.


And besides that, as long as you _know_ what you are doing, you can also
start threads in actions, for example we are starting a separate connection
thread for a ssl connection to another webserver (payment provider) allowing
the current thread to be released and serve another customer, during the
request is being proceeded. The customer is then moved back to the page, and
gets the previously stored result showed, but the resource is free in the
mean time (and threads are VERY valuable under woody).

Regards
Leon



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to