This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

How to restart the jboss server through java

umesh bengaluru
Greenhorn

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";
try{
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
Bartender

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to restart the jboss server through java
 
Similar Threads
Starting JBoss
Issues Re Environment and Path Variables In Windows XP For JBoss and ANT
To run and restart the jboss server through java
The console/command window disappears (jboss via run.bat)
Jboss not starting aka shutting down