dev@glassfish.java.net

Re: Glassfish OSGI bundle

From: Jerome Dochez <jerome.dochez_at_oracle.com>
Date: Thu, 9 Dec 2010 10:38:25 -0800

On Dec 9, 2010, at 12:31 AM, Lee Chuk Munn wrote:

> Hi
>
> I'm writing a container for GF. I need to create some OSGi bundle for
> JARs that my container uses. Can you help me with a few questions?
>
> 1. What is the best way to bundle these JARs? Are there any tools that
> you use in GF to bundle these? I'm currently using bnd.

not that I know of.
>
> 2. I looked into one of the manifest files of one of the bundle
> grizzly-container.jar and found some properties like HK2-Import-Bundles,
> HK2-Class-Path-Id, HK2-Bundle-Name keys. Are these similar to the OSGi
> properties?
>
yes but there are legacy and not used anymore.

> 3. Where do I drop the bundles after I have created them? In
> glassfish/modules directory?
yes

> Is there a felix command to see if my
> bundle have been 'deposited' correctly?
>
connect to the felix console "telnet localhost:6666' and do a "felix:ls" command. check the documentation on felix on how to use the console.

> Appreciate you help as I'm fairly new to OSGi.
>
> Thanks
>
> Regards
> Chuk
> --
> C++ : Where friends have access to your private members.
> -- Gavin Russell Baker
> <chuk-munn_lee.vcf>