The OSGi packaging includes the uimaj-core jar. It is suitable only for the special use case I think, where you want an self-contained uima-pipeline consisting of one component, as a single OSGi bundle. I'm under the impression that some users are using this in this manner, and if there are other use cases, I'm not sure how they are working.
We are including the Eclipse buddy stanzas in the MANIFEST.MF as before, so that use should still be possible. My understanding of OSGi class loading is that if there is another bundle wired to a bundle, the wired bundle's classes have priority over "local" classes contained in the bundle. I think this means that even though we might have included the uimaj-core.jar in the annotator bundle, if it is used in an eclipse equinox container, with the uimaj-ep-runtime bundle, with appropriate wiring, it might still work :-). A broader OSGi "support" for UIMA could be done, where we make UIMA aware of OSGi, and have it use OSGi "services" to load classes from bundles, etc., but that hasn't been done. Let me know if this is off-base with respect to use cases you know about...; any testing appreciated :-) -Marshall On 8/9/2011 10:39 AM, Jörn Kottmann wrote: > On 8/9/11 4:37 PM, Marshall Schor wrote: >> Please post the results of testing the OSGi packaging:-) and then I'll spin >> a >> release candidate. > > How is the OSGi packaging now done? How can the annotators be used in an OSGi > environment? > > Jörn >
