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?
-- 
View this message in context: 
http://www.nabble.com/Access-resources-from-Java-MessageExchangeListener-%28bean%29-tp23928637p23928637.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to