I want to check whether my JBoss EAP 7 is started via jboss-cli
.
With JBoss EAP 6 I could use the following command
jboss-cli.bat -c --commands="read-attribute server-state"
While the server is starting, the response is starting
. When the server booted successfully, the response is running
.
After migrating to JBoss EAP 7.0, the same command returns the following message, while the server is starting. Failed to connect to the controller: Timeout waiting for the system to boot.
When the server started successfully, the usual message running
is returned.
My question is: Why can't the jboss-cli
connect to the server until it started?