Which version of JBoss are you using?
JBoss EAP 6.4.0 has a feature which can help you to achieve something similar. Suppose if your Application context root is "/YourApp" then you can start your JBoss EAP with the following System property. That should do the trick. (For multiple context roots use the comma separated value like /YourWebApp,/MyWebApp/OutWebApp)
There is a release notes JBoss EAP 6.2.1 which talks about this :
- 1050033 WAIT_FOR_BEFORE_START does not work for / context applications
WAIT_FOR_BEFORE_STARTnot working when deploying
/context applications. If
/application is deployed, the connectors would never start.
/and deploying a
/context application, the connectors now start successfully.
Is below command the correct way to start JBOSS
standalone.bat -b 0.0.0.0 -Dorg.apache.catalina.connector.WAIT_FOR_BEFORE_START=/tc
Yes, it looks good.