File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

How to restart the jboss server through java

 
umesh bengaluru
Greenhorn
Posts: 10
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in more than one forum.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic