How to wait until server is started to execute CLI commands?

Solution Unverified - Updated -


Situation : Automate the process of configuring our JBoss servers using the remote CLI to do this. In detail, using the remote CLI, JBoss want to be configurated through ssh.

If it try to connect to the EAP before start it up, it throws following error:

JBAS012174: Could not connect to remote://machine:9999. The connection failed.

Is there any way through the CLI or a shell command to "wait" until server has finished starting programmatically?


Red Hat JBoss Enterprise Application Platform
- 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In