cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ckallen
Level 3

Howto check if JBoss is started?

During my installer, I deliver JBoss, and start up the web server via a Windows NT service. Subsequent installation steps require that JBoss is running, however it can sometimes take up to 2-3min. to fully start the web server, so I need some way to wait until the server is ready to proceed.

Has anyone ever written a custom action that will start JBoss, and synchronously wait until it is fully started before continuing with installation?

Thanks-
Labels (1)
0 Kudos
(1) Reply
ckallen
Level 3

I ended up writing an action that makes an HTTP request to the JBoss web server (ie. http://localhost:port).

It sleeps for 5 seconds and repeats until it gets a valid response (or # of attempts is exceeded)

Not very elegant, but it works.

fwiw, I attempted to use the /JBoss/bin/Twiddle script to retreive the MBean property "jboss.system:type=Server Started" but I couldn't get this to work right.

Cheers...
0 Kudos