You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Narita Bagchi <Na...@headstrong.com> on 2012/11/23 17:00:05 UTC
Setting JMS header
Camel adds the JMS properties to the In message headers when it receives a JMS message. My requirement is to set JMSType. The JMSConfiguration "jmsMessageType" is not same as "JMSType". Correct me if am wrong.
How can I set the "JMSType"? If I add it to the header of the exchange, from inside a Processor before reaching the JMSComponent, I fear the default value will override the value I set.
-Narita
***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***
Re: Setting JMS header
Posted by narita <na...@headstrong.com>.
Apologies for the late reply. I realized the difference and hooked a
Processor to set the header prior to the JMSConsumer in the route, which
worked. Thanks again, Claus.
--
View this message in context: http://camel.465427.n5.nabble.com/Setting-JMS-header-tp5723165p5725217.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Setting JMS header
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Nov 23, 2012 at 5:00 PM, Narita Bagchi
<Na...@headstrong.com> wrote:
>
>
> Camel adds the JMS properties to the In message headers when it receives a JMS message. My requirement is to set JMSType. The JMSConfiguration "jmsMessageType" is not same as "JMSType". Correct me if am wrong.
> How can I set the "JMSType"? If I add it to the header of the exchange, from inside a Processor before reaching the JMSComponent, I fear the default value will override the value I set.
>
jmsMessageType and JMSType is not the same. The former is used to
force which kind of javax.jms.Message implementation to use (eg
TextMessage, BytesMessage etc.)
Setting JMSType can just be done by setting a header.
> -Narita
>
> ***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen