dev@glassfish.java.net

Re: Glassfish OSGI bundle

From: Alexis Moussine-Pouchkine <alexis.moussine-pouchkine_at_oracle.com>
Date: Thu, 9 Dec 2010 21:26:06 +0100

Nice! Blog/Screencast/Demo coming?
-Alexis

On 9 déc. 2010, at 19:57, Lee Chuk Munn wrote:

> HI Jerome
>
> thanks for your tip. I got my container up!
>
> Regards
> Chuk
>
> On 09/12/10 16:38, Jerome Dochez wrote:
>>
>> 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>
>>
>
> --
> One programmer can do in one day what two programmers can do in two.
> <chuk-munn_lee.vcf>