[jboss-dev-forums] [JBoss AS7 Development] - Re: can I avoid a service to block as7 startup ?
Dan Sirbu
do-not-reply at jboss.com
Fri Oct 14 00:47:16 EDT 2011
Dan Sirbu [http://community.jboss.org/people/lmcdasi] created the discussion
"Re: can I avoid a service to block as7 startup ?"
To view the discussion, visit: http://community.jboss.org/message/631704#631704
--------------------------------------------------------------
Well, the Framework depends "ok" on the SubsystemState. And since they run on the same thread the Framework will wait until Subsytem finishes.
The problem comes from the fact that the SubsystemState has NO clue how many modules are to be set. Thus it does not know how many adds need to be performed in order for the Subsystem Model to be created ok. The adds are comming in parallel with the SubsytemState start method .....
So, to sync ok, the SubsystemState "start" method needs to block the startup UNTIL the model is properly set with all modules otherwise the SubsystemState cannot have built the proper structure.
And I see a similar issue within the jboss-as-osgi-service .....
So again, how to properly synchronize this ....
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/631704#631704]
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/20111014/6358cb75/attachment.html
More information about the jboss-dev-forums
mailing list