I think either a LifecycleListener or ServletContextListener is what you
want, you can detect tomcat startup/shutdown and/or application
startup/shutdown
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/LifecycleListener.html
"Let's write a simple application lifecycle event listener that writes a
message to the console of the server when the web application is ready
to accept requests and when it is going to be removed. Listing 1 shows
the code for a simple application event listener class."
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=2
cifroes wrote:
cifroes wrote:
Hi,
catalina.out hast the time Tomcat took to startup but I need to know
the timestamp [date of when tomcat started] of when tomcat is ready
to receive requests.
Let me clarify a bit:
I need this timestamp to measure downtime of a server, I don't need
exactly precision to the ms but at most 0.5second error margin.
And the timestamp should be made when tomcat server is ready to
receive requests or at least 0.5second error margin between when
Tomcat is accepting requests and that timestamp.
I hope it's clear now :)
Thanks for all the help already,
--cifroes
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]