A couple of possibilities:
a) System.exec("sh path-to-run.sh");
b) Include bin/run.jar in your classpath and then do:
org.jboss.Main.main(command-line-arguments);
Option (a) has the benefit of running JBoss AS in a separate process.
Option (b) runs JBoss AS within the same JVM that started it. This would be suitable if,
for instance, you use Groovy scripts.
If you want to write a C/C++ app to run it, read up on JNI. Or even better, get the JVM
source and look at how the java executable is implemented.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201161#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...