Singleton and ServletContext

2006-09-08 Thread Feris Thia
Dear All, Is there anyone can point me to any sample how to use singleton object across web application in Tomcat ? -- Regards, Feris PT. Putera Handal Indotama JL. KH. Moh. Mansyur No. 11 Blok B.8-12 Telp. +62-21-631 6688 (Hunting) Fax. +62-21-6330211 Jakarta (10140) - INDONESIA

RE: Singleton and ServletContext

2006-09-08 Thread Peter Crowther
From: Feris Thia [mailto:[EMAIL PROTECTED] Is there anyone can point me to any sample how to use singleton object across web application in Tomcat ? See http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html You need to ensure that the singleton is loaded by the same classloader in

Re: Singleton and ServletContext

2006-09-08 Thread DJohnson
should probably be in common/lib. See http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html for more on Tomcat classloader hierarchy. Please respond to Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org cc: Subject:Singleton

Re: Singleton and ServletContext

2006-09-08 Thread Marc Farrow
it is loaded from should probably be in common/lib. See http://tomcat.apache.org/tomcat-4.1-doc/class-loader-howto.html for more on Tomcat classloader hierarchy. Please respond to Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org cc: Subject:Singleton

RE: Singleton and ServletContext

2006-09-08 Thread Peter Crowther
From: Marc Farrow [mailto:[EMAIL PROTECTED] Would you not accomplish the same thing by placing it in shared/lib instead of common/lib? *sigh*. Yes. Sorry, misread the diagram. - Peter - To start a new