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

Ed Roberts do-not-reply at jboss.com
Thu Nov 15 11:39:51 EST 2012


Ed Roberts [https://community.jboss.org/people/ejroberts] created the discussion

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

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

--------------------------------------------------------------
I have an OSGi service that provides container properties (i.e. JBoss Model) to our other OSGi bundles.

We moved to a late October build of 7.2.0.Alpha1 from 7.1.1.Final. With the move, the startup timing between the ModelController service and the OSGi deployments changed.  
When my code queried the model before it was fully started, the Model Controller was returning a successful operation outcome, but the query would return an undefined value.

With the latest build from github attribute queries prior to a started state now quite rightly return an unsuccessful operation outcome, and the following error is logged
2012-11-15 15:35:39,436 ERROR [org.jboss.as.controller.management-operation](EclipseGeminiBlueprintExtenderThread-18) JBAS014613: Operation ("read-attribute") failed - address: ([("interface" => "internal")]) - failure description: "JBAS014807: Management resource '[(\"interface\" => \"internal\")]' not found"

My question is, what can I test to make sure the Model and Service are fully started before querying, in order to avoid these errors being logged ?

I tried using the controller state before, but it wasn't actually changing to indicate it had started.
--------------------------------------------------------------

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

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/20121115/07fa4cd9/attachment.html 


More information about the jboss-dev-forums mailing list