Howdy,
Tomcat would create one instance of that servlet for every <servlet> tag
in your web.xml.  But each request is serviced by one thread, so there
would be multiple threads using your one servlet instance, possibly
concurrently.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Peter Guyatt [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 10, 2003 9:24 AM
>To: [EMAIL PROTECTED]
>Subject: Creation of HttpServlets
>
>Hi All,
>
>       I am hoping someone can help answer me this quick question.
>
>If I had a web app with one servlet for processing all requests would
that
>one servlet be used by every thread or is it a one to one relation
(each
>thread uses its own instance of the servlet).
>
>Thanks
>
>Pete
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to