geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Re: How to read an entry in an embbed jar file of the bundle
Date Mon, 03 May 2010 11:43:08 GMT
Hmm, forget the cc ...

2010/5/3 Ivan <xhhsld@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é <jb@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" xhhsld@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

Mime
View raw message