File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Detect Tomcat Startup" Watch "Detect Tomcat Startup" New topic
Author

Detect Tomcat Startup

Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
Hi,

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.
Thanks!
Sivaraman Lakshmanan
Ranch Hand

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


Regards,
Sivaraman.L
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detect Tomcat Startup
 
Similar Threads
Different ways of starting tomcat
Tomcat Server and axis application --prob. starting context
stop the new same java instanceor program through an batch file
Sending a request and making the browser window invisible
NullPointer Exception by apache axis stub at client side