More info... Looking at the code it seems that sun.misc.Service calls Classloader.getSystemResources() to find the files in META-INF/services/
If the META-INF dir or a jar containing it can be found on the Bundle-Classpath shouldn't I expect it to work? Resorted to programmatically adding the required registrations for now. MikeG On 07/08/07, Mike Gould <[EMAIL PROTECTED]> wrote: > > Hi there, > I'm trying to use create a bundle for a library that uses > javax.imageio.spi service registrations. > > The library consists of several jar files, some of which have > META-INF/services/<service-class-name> files which are read by > javax.imageio.spi.ServiceRegistry. When I put these jars inside an OSGi > bundle jar none of these get found. I've tried copying the META-INF/services > files out to the bundle jar and also (under equinox) installing my bundle > unpacked but neither has helped. > > Is there any standard or recommended way of bundling this kind of library? > > > thanks > -- > - MikeG -- - MikeG
_______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
