Hi Serge,

The zoom chat was so ephemeral, I didn’t have a chance to copy your address.

Lest I forget just a few links about your question regarding legacy libraries, 
if I understood it correctly.

There are people on this list 20x more qualified and experienced than me to 
pick up this thread, I just had the opportunity in the past to explore this 
problem extensively because I had to "get stuff working". 

https://bnd.bndtools.org/chapters/390-wrapping.html 
<https://bnd.bndtools.org/chapters/390-wrapping.html> — the spec on how to use 
bnd (and following from that the bnd-maven-plugin and maven-bundle-plugin) to 
embed dependencies into Jars and how generate Manifests 

https://karaf.apache.org/manual/latest/#_wrap_deployer 
<https://karaf.apache.org/manual/latest/#_wrap_deployer> — it’s also possible 
to use non-bundles in karat (for simple cases)

https://github.com/apache/servicemix-bundles 
<https://github.com/apache/servicemix-bundles> — about your legacy stuff — good 
chances the servicemix (karaf ancestor) people have wrapped it already for use 
in OSGi

Service loader stuff is a whole different story, I didn’t have to work with 
that so often (thankfully):

https://blog.osgi.org/20 
<https://blog.osgi.org/20>13/02/javautilserviceloader-in-osgi.html 
<https://blog.osgi.org/2013/02/javautilserviceloader-in-osgi.html> - The 
Service Loader Mediator motivation 

https://osgi.org/specification/osgi.cmpn/7.0.0/service.loader.html 
<https://osgi.org/specification/osgi.cmpn/7.0.0/service.loader.html> - The Spec 
(one of the best in the industry)

https://aries.apache.org/modules/spi-fly.html 
<https://aries.apache.org/modules/spi-fly.html> — an implementation of the spec 
I used

Best regards,

Oliver

 

Reply via email to