Honestly I don´t understand why you need a fragment in this setup. You
have a common api bundle, a service bundle and a client bundle to that
service. So that should
work nicely if service and client import the api packages.
I have a tutorial where I show how to publish and use a simple service:
http://www.liquid-reality.de/x/DIBZ
If you use the fragment because of the DB access like the link to
freeman´s article suggests you might use another aproach that does not
need a fragment bundle.
In this article I describe how to publish a DataSource as an OSGi
service and how to use it.
See:
http://www.liquid-reality.de/x/LYBk
Christian
Am 23.05.2012 09:04, schrieb pchakinala:
Here atatched 3 bundles.
restful ----> Bundle A ( This calls OSGI service hosted in Bundle B)
dataconverter ---> Bundle B contains OSGI service (Utility class) which
uses common API
test ----> This is Fragment Bundle.
sample1bundle ---> custom api jar
Its working fine if i make Bundle A as host bundle instead of Bundle B.
As per my requirement, Bundle B is used by all other bundles. So it should
work if i import custom API to Bunble B.
Is there any other way to implement my requirement.
Thanks
http://servicemix.396122.n5.nabble.com/file/n5713330/dataconverter.zip
dataconverter.zip
http://servicemix.396122.n5.nabble.com/file/n5713330/restful.rar restful.rar
http://servicemix.396122.n5.nabble.com/file/n5713330/sample1bundle-1.0.0.jar
sample1bundle-1.0.0.jar
http://servicemix.396122.n5.nabble.com/file/n5713330/test.zip test.zip
--
View this message in context:
http://servicemix.396122.n5.nabble.com/OSGI-Class-Loading-tp5713326p5713330.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
Talend Application Integration Division http://www.talend.com