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/631710#631710
--------------------------------------------------------------
Yes - I am aware that such a service exists. The thing is that I have to provide service
to not only one WAR file but to ALL war file that get deployed. Then why not using the ME
functionality - it looks the right way to deploy services used by other WAR,RAR,EAR,SAR
etc .... And it WORKS as long as I do fix this.
Anyhow, the issue is still here and solving it will help other that would like to create
ME's.
There is definitively an unsync happening between the two threads. And I do not think I
miss something when I create the Subsytem. I think I have done my homework ..... ok :)
..... I gues
I did not meant that I am using the OSGI SubsystemState class ..... I just looked at how
things are done by other people otherwise how one can learn.
Thus if one looks there, the issue should be similar. Their Framework will start BEFORE
the SubsytemState can populate the module from the ModuleAdd - that must happen there too
! Their stateService.addModule from the addStep will happen within the "Controller
Boot Thread" and necesserely before the Framework "MSC service" - just as
it does for me and thus the other services may or may not get the right stuff - all
depending on thread sync !
Then they do things differently but that issue, in my humble opinion, looks to be there.
Unfortunately there are no logs that can be enabled to show that. Anyhow - that is what I
think based on what I have as a result - but I can be wrong.
And anyway the issue is clear - framework can not have a proper SubsystemState until the
stateService.addModule from the addStep completes !!! And that is in NO SYNC with the
"MSC Thread".
BR,
Dan S.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/631710#631710]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]