One thing i forgot in my previous reply:

To implement singletons under tomcat requires more 
knowhow as a typical stand alone applications.
Tomcat has several classloaders and there can a copy 
of the same class in different classloaders. This way 
the simple approach of using static class vars to store 
singletons can fail.

> -----Original Message-----
> From: T K [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 07, 2004 9:03 PM
> To: [EMAIL PROTECTED]
> Subject: weird tomcat questions
> 
> 
> Can someone please decipher the following questions?
> 
> * How does scoping work in Tomcat?
> 
> * Why would you bother using a singleton when you're working 
> with Tomcat?
> 
> Why would scoping be different in tomcat than any other
> servlet-complying container?  What does a singleton have to do
> with a web container?
> 
> /tk
> 
> 

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

Reply via email to