Hi,

Actually, that's what I am doing calling
ClassLoader.getSystemResourceAsStream(file), but it doesn't seem to work. I
don't see another method that could make the trick. Maybe I'm misusing the
classloader. Do you think of a particular method?

Regards,
Cedric


Jean-Baptiste Onofré wrote:
> 
> Hi,
> 
> could you try to use the class classloader ?
> 
> Regards
> JB
> 
> Fly13DW wrote:
>> Hello,
>> 
>> I'm working with a bean component which is linked to a java bean class.
>> In this bean, I need to access to several files: html, images.
>> 
>> I tried to put these files in the src/main/resources directory, as it was
>> said in some posts, but I can not accessed to them using:
>> InputStream fis = ClassLoader.getSystemResourceAsStream(file);
>> 
>> do I need to configure the classpath?
>> 
>> I have few variables in the MessageExchangeListener (onMessageExchange
>> method) :MessageExchange, DeliveryChannel but I can't find out how to
>> read a
>> resource...
>> 
>> Does Someone have the answer?
> 
> -- 
> Jean-Baptiste Onofré (Nanthrax)
> BuildProcess/AutoDeploy Project Leader
> http://buildprocess.sourceforge.net
> [email protected]
> PGP : 17D4F086
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Access-resources-from-Java-MessageExchangeListener-%28bean%29-tp23928637p23938908.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to