You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mark Webb <el...@gmail.com> on 2010/08/25 22:41:21 UTC
JMS Message header getting lost
I am sending data through ActiveMQ and Camel. I set a property value
in the TextMessage object prior to sending to ActiveMQ. The property
value I sent prior to sending to ActiveMQ is gone when I receive the
message on the other side. How can I prevent this from happening?
Re: JMS Message header getting lost
Posted by Willem Jiang <wi...@gmail.com>.
If you create a new Message you can use the copyFrom(message) to do this
job.
Willem
Mark Webb wrote:
> I think I figured it out. I have a processor in which I am creating a
> new message to pass along. I need to set the headers in the new
> message with the headers from the old message. Is that the proper way
> to copy over message properties?
>
>
>
> On Wed, Aug 25, 2010 at 4:41 PM, Mark Webb <el...@gmail.com> wrote:
>> I am sending data through ActiveMQ and Camel. I set a property value
>> in the TextMessage object prior to sending to ActiveMQ. The property
>> value I sent prior to sending to ActiveMQ is gone when I receive the
>> message on the other side. How can I prevent this from happening?
>>
>
Re: JMS Message header getting lost
Posted by Mark Webb <el...@gmail.com>.
I think I figured it out. I have a processor in which I am creating a
new message to pass along. I need to set the headers in the new
message with the headers from the old message. Is that the proper way
to copy over message properties?
On Wed, Aug 25, 2010 at 4:41 PM, Mark Webb <el...@gmail.com> wrote:
> I am sending data through ActiveMQ and Camel. I set a property value
> in the TextMessage object prior to sending to ActiveMQ. The property
> value I sent prior to sending to ActiveMQ is gone when I receive the
> message on the other side. How can I prevent this from happening?
>