File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Detect Tomcat Startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Detect Tomcat Startup" Watch "Detect Tomcat Startup" New topic

Detect Tomcat Startup

Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261

I am currently working on an automation script wherein it needs to start up the Tomcat server and then generate requests to the web application which gets loaded, and log the responses.

Until the point of start up all goes fine, but I am having some difficulty figuring out when the Tomcat server is actually up and ready to receive requests, through the batch (win32) file I have written.
Is there some mechanism by which one can detect the ON state of a Tomcat server through a batch file?

Any all assistance will be much appreciated.
Sivaraman Lakshmanan
Ranch Hand

Joined: Aug 02, 2003
Posts: 231
Try to check the port what tomcat uses is able to listen,normally 8080. If yes then the Tomcat is ready to accept request.

I agree. Here's the link:
subject: Detect Tomcat Startup
It's not a secret anymore!