
Question:
Hello internet,
I have been looking for the past two hours for a script to reload my web app.
- I'm using Tomcat on a windows server 2003.
- I know that there is a link to reload your web app, but i'm wondering if i can automate the process to reload my web app once every 8 hours.
I would really appreciate if you could give me hint or two :)
Thank you in advance
Solution:1
You should be able to use something like a scheduled task in Windows Task Scheduler to do this. See this tutorial here: http://www.iopus.com/guides/winscheduler.htm
It looks like tomcat is installed as windows service so you can create a batch (.bat) file to stop and start the service. It should look something like this:
net stop tomcat net start tomcat
Just setup the scheduled task to run this batch file every 8 hours.
Solution:2
there are two original batch to start tomcat, i just plan them to execute every 8 hours. As easy as that.
Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
EmoticonEmoticon