tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <Peter.Crowt...@melandra.com>
Subject RE: Singleton and ServletContext
Date Fri, 08 Sep 2006 09:39:18 GMT
> From: Feris Thia [mailto:feris.tia@gmail.com] 
> 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 each webapp.  The most appropriate classloader for this is the Common
classloader, so have a look at the page above and put the singleton
class in the appropriate directory (depending on how it's packaged)
under $CATALINA_HOME/common.

		- Peter

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message