You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lucas Ludvig <jo...@hotmail.com> on 2000/07/05 16:56:10 UTC

A threading question!


Hello People,

Can Tomcat handle threads that send output to two separate 
HttpServletResponse objects "simultaneously"?  Currently my simple threaded 
program locks up and no output appears in the browser.  Any input 
appreciated greatly.

Thanks,

Luke
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Re: A threading question!

Posted by William Brogden <wb...@bga.com>.

Lucas Ludvig wrote:
> 
> Hello People,
> 
> Can Tomcat handle threads that send output to two separate
> HttpServletResponse objects "simultaneously"?  Currently my simple threaded
> program locks up and no output appears in the browser.  Any input
> appreciated greatly.
> 

Certainly, thats the whole idea. The servlet engine activates a
separate
Thread for each HTTP request so as long as your servlet does not use
instance variables there should be no interference. When you say "my
simple threaded program" do you mean that you are starting another
Thread?
Simple servlets typically use the Thread provided by the servlet
engine.

-- 
WBB - wbrogden@bga.com  Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at  http://www.lanw.com/java/javacert/