I have a jar embedded in a bundle that needs to fetch a resource packaged with it like so:
MyBundle
-\\ src
-\\lib
-\\MyEmbeddedJar
-\\src
My assumptions are that:
If the jar in question is itself a resource of the current classloader, then you would first need to get the jar as a resource or as an InputStream, such as with MyBundleClass.class.getResourceAsStream("/pathToJar.jar"); then wrap it with a java.util.jar.JarInputStream. Then, continue to call getNextJarEntry() until you find the JarEntry object where "someResource.xml".equals(jarEntry.getName()).