This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Websphere and the fly likes Stop and Restart the IBM WAS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Stop and Restart the IBM WAS" Watch "Stop and Restart the IBM WAS" New topic
Author

Stop and Restart the IBM WAS

Luke Zechariah
Ranch Hand

Joined: Sep 27, 2005
Posts: 117

My application runs on IBM WAS 7.0.0.25 on Windows 2008 Server. I want to konw if there is a way to programatically stop and restart my server? It has to trigger when I get a certain kind of exception. Any idea would be of great help.

Thank for your time.
Lk.
Harneet Singh
Greenhorn

Joined: Feb 05, 2013
Posts: 18
I am not a programmer but can suggest you one thing.
You can write a script to capture you logs for the error and re-direct it to another file and then add a scheduler which can react to the captured event to restart WAS.
If it has been a UNIX based system then I would simply use crontab to run every minute or 5 minutes to check for the error and then issue KILL -9 for the JVM which would automatically restart it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stop and Restart the IBM WAS
 
Similar Threads
How to stop the server ??
context path overwritten
WriteBeyondContentLen Kyle...Please help
Does Google app engine doesn't support Struts?
Access is denied , Unable to open the service "Tomcat6"