File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes How to restart the jboss server through java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

How to restart the jboss server through java

umesh bengaluru

Joined: Jan 29, 2007
Posts: 10
Dear all,

i am trying to run and restart the jboss server through the java programm where server present in C:\jboss\bin. Please can any one help how to make this . my code to run the run.bat file goes below

String cmd = "C:\\jboss\\bin\run.bat";
Runtime runtime = Runtime.getRuntime();
Process porc = runtime.exec(cmd);

but i need to restart aslo.......their is no sucessful result...

thanks in advance.

[ March 27, 2007: Message edited by: umesh bs ]
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Please don't post the same question in more than one forum.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: How to restart the jboss server through java
It's not a secret anymore!