-
1. Re: How can I determine when the ModelController service is fully started
ejroberts Nov 20, 2012 7:21 AM (in response to ejroberts)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.
-
2. Re: How can I determine when the ModelController service is fully started
brian.stansberry Nov 21, 2012 11:01 AM (in response to ejroberts)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.
-
3. Re: How can I determine when the ModelController service is fully started
ejroberts Nov 21, 2012 11:13 AM (in response to brian.stansberry)That's excellent! What a star.
Thanks Brian