[osgi-dev] using dom4j or other shared libraries in osgi

Tom Kesling kesling at gmail.com
Wed Feb 10 11:17:33 EST 2010

I'm trying to understand the correct approach for using common
libraries in an osgi environment.

For example, I have multiple bundles that include dom4j-1.6.1.jar.
Is it possible to share this jar with multiple bundles without
including it in each bundle?
Is it a good idea to load common jars higher in the classpath so that
all bundles are using a common class?
Is it possible to take a jar like dom4j-1.6.1.jar and turn it into a bundle?

Can someone explain what options exist and the pros/cons?


More information about the osgi-dev mailing list