tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Crowther" <>
Subject RE: Singleton and ServletContext
Date Fri, 08 Sep 2006 09:39:18 GMT
> From: Feris Thia [] 
> Is there anyone can point me to any sample how to use singleton object
> across web application in Tomcat ?


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:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message