On Wed, 26 Jun 2002, Bill Barker wrote:

> I was thinking of adding a preInitCheck and postInitCheck to
> Jdk12Interceptor just to keep it all in one place.  (This was the reason to
> have postInitCheck at all).

+1

 
> As an aside, setting the logger in the static init method is almost always
> wrong for a servlet.  If the class is living in a jar in lib/apps, then only
> one logger gets created even if the servlet is used in several webapps.

+1

But: if I remember corectly, the TCL is set to either the webapp or to
the container class loader ( so jasper and other modules can find the 
parser ). In which case a servlet can access the container class loader,
by using a static field that gets it. This may be a security problem.

Costin



> 
> >
> > Costin
> >
> > >
> > > ----- Original Message -----
> > > From: "Ceki Gülcü" <[EMAIL PROTECTED]>
> > > To: "Tomcat Developers List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, June 26, 2002 2:57 PM
> > > Subject: Re: Logging separation
> > >
> > >
> > >
> > > A difficulty I encountered while implementing the solution outlined in
> > > http://qos.ch/containers/sc.html is the difference of TCL while the the
> > > static class initializer of a servlet class is executed and the TCL
> while a
> > > servlet is running. There are two distinct TCLs. (I've tried this on
> Tomcat
> > > 3).
> > >
> > >
> > > At 17:02 26.06.2002 +0200, Ceki Gülcü wrote:
> > >
> > >
> > > >Hello,
> > > >
> > > >I have written a short spec on how to achieve separation of logging
> > > >between different web-applications in a Sevlet Container. It is
> > > >available at:
> > > >
> > > >   http://qos.ch/containers/sc.html
> > > >
> > > >I would appreciate receiving comments. Thank you,
> > >
> > > --
> > > Ceki
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


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

Reply via email to