My top 5 OSGi unanswered questions

1. how do I tell obr:deploy to ignore optional bundles?
2. how do I change the layout of "osgi:list" and "obr:list" to display symbolicName instead of the (useless) bundle name?
3. how do I instruct maven-bundle-plugin to create a war without the dependencies jars in the WEB-INF/lib folder?
4. how do I configure Export-Package to export ALL the packages in the bundle BUT the packages that the bundles already imports from some other bundle?
5. why there are so few tutorial kind of documentation about OSGI?
Advertisement

2 Responses to “My top 5 OSGi unanswered questions”


  1. 1 Richard S. Hall May 3, 2011 at 6:05 pm

    Not sure why you consider bundle name to be worthless when it works perfectly fine for deploying a bundle from OBR, e.g., (obr:deploy “Apache Felix Log Service”@1.0.0). Admittedly you can also use the symbolic name, but it was never intended for humans.

    Although I believe you are referring to Karaf’s OBR commands and not Felix/Gogo’s OBR commands, you could always open feature requests against one or the other or both…or even submit a patch. They definitely don’t expose everything that you can possibly do via the service interfaces.

    Also, if you are using the Gogo commands, the equivalent of osgi:list is gogo:lb (i.e., list bundles). In that case you can do “lb -s” to get the symbolic name. I think the Karaf commands are based on the original Felix commands, so you could try “osgi:list -s” and see what happens.

  2. 2 ildella May 10, 2011 at 11:08 am

    Hi Richard thanks for the answer, list -s (and also looking to list –help…) definitely works and yes, I’m using Karaf and osgi:list

    I solved the point 3, I’m going to answer my own question on stackoverflow soon http://stackoverflow.com/questions/5743085/create-a-web-application-bundle-wab-for-a-osgi-container-that-does-not-contain

    While point 4 is not important and 5 is not a real question, point number one is still a mystery to me, one of this days I’ll check out the source.

    The problem of point 1 is that a lot of bundles install something like 50 optional dependencies that are in no way related to the bundle I’m installing.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.