Be aware that camel headers are not jms headers and camel properties are not jms properties.

The producerTemplate always means camel headers and properties. You have to consult the camel-jms component to see what camel headers you need to set to change jms headers and properties. As far as I know you do not need the camel properties.

http://camel.apache.org/jms.html

Christian


Am 30.03.2012 19:06, schrieb bjacob:
Hello Everyone -

I'm new to Apache camel and my question may seem very simple.

I was trying to create a JMS message using Camel with the ProducerTemplate
class. This JMS message will have headers like (JMSReplyTo) and customer
properties (say SOAPHeader etc).

I couldn't find a 'send' function in the ProducerTemplate class which can be
used to send Body, Headers and Properties. I see sendBodyAndHeaders and
sendBodyAndProperty functions but not for all the three together.

Can someone help me on this?

Thanks
Boney Jacob

--
View this message in context: 
http://camel.465427.n5.nabble.com/Using-Apache-Camel-ProducerTemplate-class-to-create-a-JMS-message-with-headers-and-properties-tp5607229p5607229.html
Sent from the Camel - Users mailing list archive at Nabble.com.


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
Talend Application Integration Division http://www.talend.com

Reply via email to