That being the case. If you open a database connection in the init method of a servlet, will that connection be the only one for all threads?

-Peter

At 09:42 AM 11/10/2003, you wrote:
Think of the servlet as a multithreaded object.
It spawns a new thread for each request.


On Monday 10 November 2003 09:23 am, Peter Guyatt wrote: > 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]

--
Ben Souther
F.W. Davison & Company, Inc.



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



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



Reply via email to