[jboss-dev-forums] [JBoss AS7 Development] - Re: Weld-OSGi integration in AS7
David Bosschaert
do-not-reply at jboss.com
Tue May 17 03:08:37 EDT 2011
David Bosschaert [http://community.jboss.org/people/bosschaert] created the discussion
"Re: Weld-OSGi integration in AS7"
To view the discussion, visit: http://community.jboss.org/message/605575#605575
--------------------------------------------------------------
> Kevin Pollet wrote:
> WDYT?
The OSGi Blueprint Specification deals with a similar problem using something called 'the Grace Period' ( http://www.osgi.org/Download/Release4V42 OSGi 4.2 Enterprise spec section 121.3.7). Essentially this is a period of time during which the system gives all the components a chance to initialize and injection to happen. If after the grace period has expired there are still missing dependencies, the deployment will fail. This might also work for CDI.
Re Ales, suggestion of taking the CDI deployment away when a mandatory dependency goes away. This is what OSGi Declarative Services (DS) do as well.
Essentially one of the main differences between Blueprint and DS is how they react to changes in dependencies. Blueprint keeps the dependent component alive in the hope that a replacement service will be made available at some point where DS takes the dependent away and potentially instantiates a new one when a replacement service arrives. So the Blueprint model has a dampening effect on the liveness of OSGi services whereas DS follows it directly.
I think both have their uses and ideally this kind of behaviour would be configurable for OSGi/CDI - but I guess it would be fine to pick either of the two as an initial model...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/605575#605575]
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/20110517/b8097cfd/attachment.html
More information about the jboss-dev-forums
mailing list