[jboss-dev-forums] [JBoss AS7 Development] - Re: can I avoid a service to block as7 startup ?

Jason Greene do-not-reply at jboss.com
Thu Oct 13 12:12:14 EDT 2011


Jason Greene [http://community.jboss.org/people/jason.greene] created the discussion

"Re: can I avoid a service to block as7 startup ?"

To view the discussion, visit: http://community.jboss.org/message/631613#631613

--------------------------------------------------------------
> Dan Sirbu wrote:
> 
> I am "ok" at that level - I think. What I am seeing though is that the FrameworkBootstrap class start method is called in parallel with the "addModule" from the SubsystemState. Then somehow the start context from the FrameworkBootstrap is marked as COMPLETE. And thus I am getting the IllegalStateException when the async method is called.
> 
> I am not getting - yet - where my problem is ..... I understand that the SubsytemState has to fill the module list in order for the framework to retrieve it - that is done. But I do not understand why this goes on top of the framework .... looks like I miss a dependency or something else ...
> 
It's not clear to me exactly what you are doing, but you can't call your own start method. Only when your start method is called BY MSC can you call context.asynchronous(). As mentioned above the purpose of this method is to tell MSC that +*when it is starting a service, that the service did not complete startup*+. Otherwise, once the start method called by MSC returns, the service is started
--------------------------------------------------------------

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

Start a new discussion in JBoss AS7 Development at Community
[http://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/20111013/77de3845/attachment.html 


More information about the jboss-dev-forums mailing list