> 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 t
Would you not accomplish the same thing by placing it in shared/lib instead
of common/lib? My understanding is that common/lib is also used by Tomcat
engine itself and also all webapps while the shared/lib is just shared among
all webapps? Am I mistaken?
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PRO
I'll assume you mean shared between separate web applications, as, within
a single web app. is nothing special. The key is the classloader. In
order for the singleton to be a true singleton, (not one fo reach webapp)
it must be loaded rom a common classloader. So the jar it is loaded from
sh
> 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
i