Deploying java specs jars and providers is a bit tricky in osgi, even when using the servicemix specs. I think we face two problems: * when deploying a spec bundle, we need to hide the packages from the jre and by doing so we forbid the use of the implementation provided by the jre * when deploying an implementation, it won't be available until the bundle is started but this constraint isn't captured
For the first problem, I was thinking about deploying the specs jars in the lib/endorsed dir so that they would be used.by the jre and enhance them so that they would be able to discover the implementations in bundles but also in the jre. This would work as they would use the same packages. This may require some modifications in karaf, though i'm not sure yet. For the second point, i'm still hoping that the Generic Capabilities introduced in osgi 4.3 can be leveraged fo that. I think that's aso related to obr. Anyway, i'd like to find a solution to those problems, so any idea is of course welcomed. -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
