Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detect Tomcat Startup

 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic