For the time being I have used Kabir's example in org.jboss.as.server.BootstrapListener source as a guide for knowing when the deployments have all been processed.
It would be much nicer to hook into a relevant controller started event.
Ed Roberts wrote:
I tried using the controller state before, but it wasn't actually changing to indicate it had started.
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.
That's excellent! What a star.