aspose file tools*
The moose likes Tomcat and the fly likes Restart Tomcat With Single .bat File 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 "Restart Tomcat With Single .bat File" Watch "Restart Tomcat With Single .bat File" New topic
Author

Restart Tomcat With Single .bat File

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
Hello!

Presently if I need to restart tomcat then first I have to run shutdown.bat and then startup.bat.

Is there anyway, by which I have to run only one .bat file to restart tomcat?

Reg,
Chetan


My blood is tested +ve for Java.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
The only problem with combining the shutdown.bat and startup.bat into a single file would be dealing with the time delay - it takes Tomcat a while to clean up during shutdown so you would need some way to wait.

Personally I don't think it is worth the trouble. If you need this capability to handle changes during development, why not use the Management application to restart a particular web application.
Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Restart Tomcat With Single .bat File
 
Similar Threads
Batch File Runner in Windows
contents in the .bat file is not getting executed.
Tomcat Restarts
shutdown failed Tomcat in netbeans6.1
how to run mvn commands using ms bat file