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&...]