This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Howto check if JBoss is started?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 26, 2008
02:05 PM
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-
Has anyone ever written a custom action that will start JBoss, and synchronously wait until it is fully started before continuing with installation?
Thanks-
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 26, 2008
08:44 PM
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...
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...