Hi there!

Inside my host application I tried implement a simple pushService, which
shall be used to transfer an instance of a class named Vehicle to the OSGi
world, by providing a set and get method. To be able to use the service I
exported both the service interface and the Vehicle class to a jar file and
imported that file within the bundle, which should use the service.

Everytime I tried to use the Vehicle class within my host application, which
instanciates the felix framework, and the bundle, I got a linkage error.
After reading the following blog entry (
http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html)
I understood why this error occurs. But I have no clue how to solve my
problem.

Is in in general possible to share a class between the host application and
an OSGi instance? If yes: Can somebody give me a short example?

BR,

Markus

Reply via email to