tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sg...@gmx.net
Subject Re: Retrieve context path in lifecycle listener
Date Tue, 06 Mar 2012 15:01:34 GMT
Hi Konstantin,

> 2012/3/6  <sgfan@gmx.net>:
> > Hi folks,
> >
> > I'd like to retrieve the context path from the a startup event in a
> context lifecycle listener. My usecase is register that contextpath in the
> initial context and access its value through Logback.
> > Unfortunately, LifecycleEvent does not seem to contain this data.
> >
> 
> 1. Exact Tomcat version =?

I am on 6.0.35
 
> 2. LifecycleEvent extends EventObject,  EventObject.getSource() ?

This will return /<contextPath> which I can store in java:comp/env/<someName>?


Thanks,

Mike
-- 
NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone!                                  
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a

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


Mime
View raw message