[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:37:00 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/631627#631627

--------------------------------------------------------------
> Dan Sirbu wrote:
> 
> I don't think the problem is there. I do not call my own start method. 
> 
> The SubsytemState has a list of modules with their own "start methods that are executed from the ME start method.
> 
> It is the MSC that triggers ME.start(StartContext), correct ?
> 
> Then from ME.start(StartContext) and from the SubsysteState it retreives the M1,M2 list then:
>      M1.start
>      M2.start
>      return;          so "normally" I should be able to do context.asyn anywhere in between.
Only ME.start can call startContext.asynchronous(). Having something else do it doesn't make much sense (either the method is asynchronous or it isn't).


> The problem is that this addModule interferes with the ME.start(StartContext) - when it should not. It seems that it does twice the start. And the problem is that when switching traces from boot.log to server.log I think I miss something - a TR is already there for the logging.

The only call that is ever intended to be done outside of the ME.start(SC) thread is complete() and that MUST be done after asynchronous is called.
--------------------------------------------------------------

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

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/6f85e8e4/attachment.html 


More information about the jboss-dev-forums mailing list