RE: Startup question

2003-02-20 Thread Costin Manolache
uot;server/service" object through JMX? > 2. I could check using reflection if the addLifecycleListener method is > available, but an interface would be nicer. > > Filip > > -Original Message- > From: Costin Manolache [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 20

RE: Startup question

2003-02-20 Thread Filip Hanik
leListener method is available, but an interface would be nicer. Filip -Original Message- From: Costin Manolache [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:54 AM To: [EMAIL PROTECTED] Subject: Re: Startup question A much better way - at least for tomcat5, but it sho

Re: Startup question

2003-02-20 Thread Costin Manolache
Remy Maucherat wrote: > Filip Hanik wrote: >> yes, you are right, how do I subscribe to this event? >> I know that the server has a addLifeCycleListener, but how do I access >> the server from a cluster object for example? > > You can go up the tree, I think, but otherwise, you can just use > Ser

Re: Startup question

2003-02-20 Thread Tim Funk
Would this work too? 1 - Create your own class which implements LifeCycleListener. 2 - Add it inside of like anything else. 3 - When LifeCycleListener.lifecycleEvent is called the LifecycleEvent has a method called getData() which returns an object refence which I hope is the reference to the S

Re: Startup question

2003-02-20 Thread Remy Maucherat
Filip Hanik wrote: yes, you are right, how do I subscribe to this event? I know that the server has a addLifeCycleListener, but how do I access the server from a cluster object for example? You can go up the tree, I think, but otherwise, you can just use ServerFactory.getServer(). Remy -

RE: Startup question

2003-02-20 Thread Filip Hanik
: Tomcat Developers List Subject: Re: Startup question I think o.a.catalina.core.StandardServer.start() fires the events you are looking for. -Tim org.apache.catalina.core Filip Hanik wrote: > hi there, > with the lifecycle events, can I get an event that Tomcat has started (ie, all the >

Re: Startup question

2003-02-19 Thread Tim Funk
I think o.a.catalina.core.StandardServer.start() fires the events you are looking for. -Tim org.apache.catalina.core Filip Hanik wrote: hi there, with the lifecycle events, can I get an event that Tomcat has started (ie, all the contexts have been started)? if so, what event is that Filip