[jboss-dev-forums] [JBoss AS 7 Development] - Re: How can I determine when the ModelController service is fully started

Brian Stansberry do-not-reply at jboss.com
Wed Nov 21 11:01:51 EST 2012


Brian Stansberry [https://community.jboss.org/people/brian.stansberry] created the discussion

"Re: How can I determine when the ModelController service is fully started"

To view the discussion, visit: https://community.jboss.org/message/777758#777758

--------------------------------------------------------------
> 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 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 https://issues.jboss.org/browse/AS7-4492. But it should work fine for tracking startup. Let me know if it isn't.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/777758#777758]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121121/2088200f/attachment.html 


More information about the jboss-dev-forums mailing list