This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Tomcat Restarts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Restarts" Watch "Tomcat Restarts" New topic
Author

Tomcat Restarts

Ben Lim
Greenhorn

Joined: Apr 04, 2005
Posts: 9
how can i have the Tomcat to do a restart in every 1 hour?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Why would you want to do that?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Lim
Greenhorn

Joined: Apr 04, 2005
Posts: 9
because always happen to have an error i need to restart the tomcat. as tge tomcat will do a URL correction than if lost connection, i want to restart the tomcat.
Ben Lim
Greenhorn

Joined: Apr 04, 2005
Posts: 9
or is there a way to create a bat file to read the log file to restart tomcat
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

Do you not think it would be a better idea to find and fix the error?
Ben Lim
Greenhorn

Joined: Apr 04, 2005
Posts: 9
because sometimes it is network got disconnected that causes the error being thrown.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Restarts