users@glassfish.java.net

Re: Java EE & OSGi [Re: GlassFish and Container]

From: Richard Kolb <rjdkolb_at_gmail.com>
Date: Thu, 11 Nov 2010 14:12:28 +0200

Hi Alexis

On 11 November 2010 13:07, Alexis Moussine-Pouchkine <
alexis.moussine-pouchkine_at_oracle.com> wrote:

> That's a good question as I don't believe this is covered in the official
> documentation.
>
> There are really two ways to "uses" OSGi at the application layer IMO :
> 1/ Use OSGi declarative services and inject them in you standard Java EE
> apps using (@Resource).
> This works well with the current stable version of GlassFish (3.0, 3.0.1)
> and is detailed in Jerome's earlier blog:
> http://blogs.sun.com/dochez/entry/glassfish_v3_extensions_part_4
>
> 2/ Use the OSGi Enterprise Spec implementation to package your Java EE
> application and resources into OSGi bundles
> (allowing for versioning, dependencies, etc.). For that part you'd need to
> use GlassFish 3.1 and Sahoo's blog is probably the best place to start:
> http://www.java.net/blogs/ss141213
>
> Of course you don't *have* to use OSGi. Most people just get the benefits
> of the GlassFish modularity without being exposed to the implementation
> details. But if you do want to use OSGi, please try it out and provide
> feedback!
>

Thanks so much for this.
My head is just bundling with possibilities.

The first blog seems so usable.
GlassFish always amazes me. :)

*Thanks S. Ali Tokmen for you mail, reading it now.*



regards
Richard