Hmm, forget the cc ... 2010/5/3 Ivan <xhh...@gmail.com>
> Thanks for your reply, not sure I understand your idea correctly. > getResource is to use classloader system to find the target resource. > My scenario is that I know that there is a embbed jar file in the bundle, I > want to read one file in that jar file. If I use getResource, it might > return the resource from other bundles. > > 2010/5/3 Jean-Baptiste Onofré <j...@nanthrax.net> > > Hi, >> >> Using Blueprint, it's quite easy as you can define some kind of properties >> place holder. >> >> Anyway, the best practice, it's to use a ThreadContextClassLoader to make >> a getResource() etc. >> >> Regards >> JB >> >> On Mon 03/05/10 13:27, "Ivan" xhh...@gmail.com wrote: >> > Hi, >> > Is there a simple way to read an entry in an embbed jar file of the >> > bundle ? For a bundle with the structure below : >> > /META-INF >> > a.jar >> > /META-INF/a.xml >> > >> > What is the correct entry path for the a.xml file ? >> > Thanks ! >> > -- >> > Ivan >> > >> > >> > >> >> > > > -- > Ivan > -- Ivan