users@glassfish.java.net

Re: JMS/JMX information in an OSGi bundle

From: Robert Weeks <RWeeks_at_ext-inc.com>
Date: Wed, 4 Jan 2012 08:13:33 -0800

Hey Sahoo -


> On Wednesday 04 January 2012 08:48 PM, Robert Weeks wrote:
>> Seem my only solution besides constructing a URL (which I would rather use the factory) is to bundle all of these libs with my app and utilize Bundle-Classpath with them.
> Apart from the ConnectionFactory related classes, the rest of your
> dependencies look like classes containing constants like mbean attribute
> and operation names. Can't you just package those classes in your bundle
> (I am sure you know it's relatively straight forward using bnd) instead
> of packaging the whole jar?
>
> Thanks,
> Sahoo


Not sure what you mean by this - those classes - outside of the jar?

For example - for this to work in my existing bundle - my bnd file contains similar to this:

Include-Resource: conf=src/conf,resources=resources,lib=lib
Bundle-ClassPath:.,lib/imq.jar,lib/imqjmx.jar,lib/imqxm.jar

(where lib of course contains those jars).

Looking into doing this without Bundle-ClassPath as well.

Thanks Sahoo.




Robert Weeks
Lead Developer - Framework and UI
EXTENSION, INC.
Email: rweeks_at_ext-inc.com
Office: 260-797-0200 x4228
General: 877-207-3753
www.OpenTheRedBox.com