users@glassfish.java.net

Re: documentation for osgi extensions?

From: Sahoo <Sahoo_at_Sun.COM>
Date: Wed, 07 Apr 2010 06:39:42 +0530

Erik,

Support for EJB as OSgi service is available only in GlassFish trunk
builds. However you can develop OSGi enabled Web Applications in GFv3
itself. Such wars are called WABs. Since a war file in Java EE 6 can
contain EJBs, a WAB can also contain EJBs.

You are right, there is no mention of these in v3 docs yet, this is
something we plan to address for v3.1.

In the mean while, I am thinking of having a Wiki page which I can keep
up-to-date as and when I add new features in the area of OSGi & Java EE.
I just need some time to do the same.

I strongly recommend using a GlassFish trunk build to experiment, as
that contains some advanced capabilities not found in v3.

Thanks,
Sahoo

Erik Brakkee wrote:
> I have seen some examples about EJBs exposed as OSGI services and
> there is mention on some slides about using @Resource from a Java EE
> application to access an OSGI service. Is there any documentation
> somewhere about these features? Couldn't find any information in the
> glassfish v3 docs but could have overlooked something.
>
> Cheers
> Erik