title: OSGi felix: Sharing a class between the host application and a bundle possible?
body: <p>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.</p>
  
  <p>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
  (<a href="http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html" rel="nofollow noreferrer">http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html</a>)
  I understood why this error occurs. But I have no clue how to solve my problem.</p>
  
  <p>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 (<a href="http://code.google.com/p/transloader/" rel="nofollow noreferrer">http://code.google.com/p/transloader/</a>) and I'm don't really sure whether this lib is able to solve my problem or not ...</p>
  
  <p>BR,</p>
  
  <p>Markus</p>