I was reading about OSGI and I found out that it's not as complicated as it looks like. As I am not an Eclipse fan, I tried Knopflerfish and Apache Felix. I might use OSGI in my next projects if they're big enough.
After half an hour, I was able to get a simple bundle running with Apache Felix. I wrote a simple program embedding Apache Felix and created another project which provided a bundle.
My main interest in OSGI is dependencies management handling :
- Service A is started
- Service B depends on Service A
- if service A is not available -> do not start service B
- if service A is available -> start the service B and register it