Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: weird tomcat questions

Ralph Einfeldt

2004-01-08


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:tk@(protected)]
> Sent: Wednesday, January 07, 2004 9:03 PM
> To: tomcat-user@(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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.