[jboss-user] [Beginners Corner] - Restarting JBoss Programatically
dmoses48
do-not-reply at jboss.com
Thu Dec 11 13:05:52 EST 2008
Hello everyone. I have inhereted a JBoss project at work and have been fixing bugs and add enhancements on it for a few months. I have finally got permission to upgrade it from jboss 3.2.1 to jboss 4.2.2.GA.
Our restart button on our JSP pages doesn't work anymore. I think ok they probably changed the API for the restart call. After looking at the code I'm not sure they went about this correctly to begin with.
Currently if you press the restart button the code calls:
log.info("Restarting application server...please wait");
| System.runFinalization();
| Runtime.getRuntime().halt(2);
I would not expect this code to restart jboss but in 3.2.1 it does restart jboss. In 4.2.2.GA it does what I would suspect: shuts down jboss.
So my question is, is there a way to programatically restart jboss in 4.2.2 without calling batch or shell files?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196021#4196021
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196021
More information about the jboss-user
mailing list