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 it possible to share a class between the host application and an OSGi instance? Maybe I have to use reflection instead of import the jar file? I had a look at that library (http://code.google.com/p/transloader/) and I'm don't really sure whether this lib is able to solve my problem or not ...
BR,
Markus