tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elli Albek <>
Subject Re: How to know when tomcat is ready to serve request
Date Fri, 23 Oct 2009 02:48:21 GMT
If this is the case you can assume that the war file is deployed.

I don't trust the code of the tomcat startup/shutdown. If you want to be 100% safe use a server
lifecytle listener. This is limited to a server that has the same apps, meaning you are not
adding/removing/replacing applications on the fly. There is a higher probability that what
you assume is "running" and "not running" based on event listeners is correct with lifecycle
listener (higher, not 100%). This is for tomcat 5.x. in 6.x versions the event and lifecycle
management may mirror more the actual lifecycle of objects.


----- 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 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, JNDI resource) or outside the tomcat
> JVM?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message