Re: How to know when tomcat is ready to serve request

2009-10-23 Thread Anup K Ram
- Original Message - > From: Anup K Ram > To: Tomcat Users List > Sent: Thu, 22 Oct 2009 20:58:37 -0700 (PDT) > Subject: Re: How to know when tomcat is ready to serve request > > My problem here is I want to wake up the thread after the server is > complete

Re: How to know when tomcat is ready to serve request

2009-10-23 Thread Elli Albek
y the container interfaces (which you should implement as empty methods). E - Original Message - From: Anup K Ram To: Tomcat Users List Sent: Thu, 22 Oct 2009 20:58:37 -0700 (PDT) Subject: Re: How to know when tomcat is ready to serve request My problem here is I want to wake up the t

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Anup K Ram
ifecycle of objects. > > E > > > - Original Message - > From: "Anup K Ram" > To: "Tomcat Users List" > Sent: Thursday, October 22, 2009 9:38:01 AM (GMT-0800) America/Los_Angeles > Subject: Re: How to know when tomcat is ready to serve request > > T

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Elli Albek
tual lifecycle of objects. E - Original Message - From: "Anup K Ram" To: "Tomcat Users List" Sent: Thursday, October 22, 2009 9:38:01 AM (GMT-0800) America/Los_Angeles Subject: Re: How to know when tomcat is ready to serve request The code is in a thread thats in turn

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Ben D. Kusa
- Original Message - From: David kerber To: Tomcat Users List Sent: Thu Oct 22 12:31:34 2009 Subject: Re: How to know when tomcat is ready to serve request Anup K Ram wrote: > Its inside the war file. Take a look at the contextInitialized event of the ServletContextListe

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Ben D. Kusa
- Original Message - From: David kerber To: Tomcat Users List Sent: Thu Oct 22 12:31:34 2009 Subject: Re: How to know when tomcat is ready to serve request Anup K Ram wrote: > Its inside the war file. Take a look at the contextInitialized event of the ServletContextListe

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Anup K Ram
The code is in a thread thats in turn spawned from the contextInitilized method of a ServletContextListener.(Inside the war) On Wed, Oct 21, 2009 at 11:53 PM, Elli Albek wrote: > Where does the code that needs to know that reside? How is it initialized? > Is it inside tomcat (war file, valve, JN

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread David kerber
Anup K Ram wrote: Its inside the war file. Take a look at the contextInitialized event of the ServletContextListener interface: package myPackage; import javax.servlet.ServletContext; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servle

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Anup K Ram
Its inside the war file. On Wed, Oct 21, 2009 at 11:53 PM, Elli Albek wrote: > Where does the code that needs to know that reside? How is it initialized? > Is it inside tomcat (war file, valve, JNDI resource) or outside the tomcat > JVM? > > E > > - Original Message - > From: Anup K Ram

Re: How to know when tomcat is ready to serve request

2009-10-22 Thread Mark Thomas
> From: Anup K Ram > To: users@tomcat.apache.org > Sent: 22/10/09, 00:56:50 > Subject: How to know when tomcat is ready to serve request > > Hi, > Is there a way to know whether tomcat is started successfully and ready to > serve requests? I need to know this programmatically. Use a LifecycleLis

Re: How to know when tomcat is ready to serve request

2009-10-21 Thread Elli Albek
Where does the code that needs to know that reside? How is it initialized? Is it inside tomcat (war file, valve, JNDI resource) or outside the tomcat JVM? E - Original Message - From: Anup K Ram To: users@tomcat.apache.org Sent: Wed, 21 Oct 2009 16:56:50 -0700 (PDT) Subject: How to know