views:

743

answers:

2

I need to restart JBoss from my script?

I tried to call

jboss-5.1.0.GA\bin\shutdown.bat

and then

jboss-5.1.0.GA\bin\run.sh

But unfortunately shutdown.bat works asynchronously.

Is it possible to restart JBoss from shell script?

A: 

AFAIK, there is no built-in support for this in JBoss. But...

This message on the jboss-user mailing list might help you to build your own script: Re: [jBoss-User] Starting jBoss as a service on Linux

EDIT: Just found another (very similar) post: Running JBoss-5.1.0.GA as a service on Red Hat? which could be a good source of inspiration.

Pascal Thivent
A: 

I have a restart script, posted at http://serverfault.com/questions/56595/jboss-restart-script, written for red hat linux. I'm sure it can be easily adapted to AIX.

One problem though - it still has problems with starting again, it seems that the jboss process hangs until the script is off. Running it again starts jboss immediately.

David Rabinowitz