You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Charles Moulliard <cm...@gmail.com> on 2012/06/14 08:12:01 UTC

CDI & OSGI

Hi,

As Apache Geronimo platforms 3.X uses Apache Karaf and OSGI runtime, I would
like to know if we can deploy on the platforms bundles and uses CDI
injection. Do you also support to inject dependency in a bundle when a class
has been packaged in another bundle ?

Regards,

Charles
Apache Committer

--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/CDI-OSGI-tp3985169.html
Sent from the Users mailing list archive at Nabble.com.

Re: CDI & OSGI

Posted by David Jencks <da...@yahoo.com>.
Hi Charles

At this point we only support cdi in jee contexts, not non-jee osgi contexts.  I think there's an osgi spec effort for cdi in osgi bundles.  Almost certainly our support will be limited to whatever either OWB or Aries comes up with.    My own opinion on cross-bundle injection (from a year ago when I thought about it a little bit) is that it should be mediated by osgi services if it can be done at all.  I think this might involve extending the ideas of osgi services to more scopes, e.g. per-request instances and per-conversation instances beyond the current singleton and per-bundle scopes.

thanks
david jencks
 
On Jun 14, 2012, at 2:12 AM, Charles Moulliard wrote:

> Hi,
> 
> As Apache Geronimo platforms 3.X uses Apache Karaf and OSGI runtime, I would
> like to know if we can deploy on the platforms bundles and uses CDI
> injection. Do you also support to inject dependency in a bundle when a class
> has been packaged in another bundle ?
> 
> Regards,
> 
> Charles
> Apache Committer
> 
> --
> View this message in context: http://apache-geronimo.328035.n3.nabble.com/CDI-OSGI-tp3985169.html
> Sent from the Users mailing list archive at Nabble.com.