Ed Roberts wrote:
I tried using the controller state before, but it wasn't actually changing to indicate it had started.
In 7.1.2 we added https://github.com/jbossas/jboss-as/blob/master/controller/src/main/java/org/jboss/as/controller/ControlledProcessStateService.java
It's marked @Deprecated because at the time I wasn't certain we wouldn't change the API in a later release, but I plan to remove that marking.
It currently has a flaw in that it doesn't transition to ControlledProcessState.State.STOPPING at the correct time in the case of a soft kill (Ctrl-C, kill -3). See https://issues.jboss.org/browse/AS7-4492. But it should work fine for tracking startup. Let me know if it isn't.