users@glassfish.java.net

Re: Questions about new OSGI Features

From: Jerome Dochez <Jerome.Dochez_at_Sun.COM>
Date: Tue, 03 Nov 2009 11:40:49 -0800

On Nov 3, 2009, at 8:34 AM, Michael Szalay wrote:

> Hi all
>
> I'm very interested in the latest development of Glassfish v3,
> especially concerning osgi.
> I'm interested in building applications using OSGi (Declarative
> Services in particular) as service layer, EJBs for security, JPA 2.0
> for persistence and JSF 2.0 as frontend layer.
> Combining these technologies would provide the best platform for
> me ;-)
>
> My questions:
>
> - dochez writes in his Blog about @Resource annotation to get access
> to osgi services. Will these annotations work in Managed Beans,
> JSR311 resources, Servlets, EJBs or are there any restrictions?
anything that is Java EE injectable.

> - is it possible to have access to the ejb layer out of an osgi
> service?
>
you can do normal EJB lookup using the InitialContext. What more do
you need ?

jerome

> Best regards
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>