On Thu, 15 Aug 2002, Greg Hess wrote:

> Date: Thu, 15 Aug 2002 09:25:37 -0400
> From: Greg Hess <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Cannot specify multiple log files with CommonsLogging/Log4j
>
> Thanks, very interesting.
>
> Does this mean that I will have similar issues with my PoolManager or does
> it not use a static class reference(like Singleton)?
>
> Will all my Singleton's be shared between webapps?
>

It all depends on where you load the class from.

Singletones defined by classes loaded from /WEB-INF/classes or
/WEB-INF/lib are *not* shared across webapps.

Singletons defined by classes loaded from anywhere else (such as Tomcat's
$CATALINA_HOME/common/lib directory) are generally shared across webapps,
but the details depend greatly on the class loader architecture of your
particular container.  For Tomcat, you can find out more in the Tomcat
docs (depending on which version you are using):

http://jakarata.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

http://jakarata.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html


> Thanks for your time,
>
> Greg

Craig


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to