You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jason Queen <Ja...@colinx.com> on 2012/04/24 22:36:24 UTC

JMS route changes the JMSMessageID

I have a camel route that moves a message from an ActiveMQ queue to a
WebsphereMQ queue.  In between the 2 endpoints I grab message and modify the
body. I also grab the JMSMessageID and store it.  After this I set the
JMSMessageID to a different number and stick it on the Exchange.  When the
message arrives on the WebsphereMQ the JMSMessageID is different then what I
set it to.   I'm using camel 2.8.4.   Is there a way to make camel not
change the JMSMessageID?

--
View this message in context: http://camel.465427.n5.nabble.com/JMS-route-changes-the-JMSMessageID-tp5663255p5663255.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS route changes the JMSMessageID

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Apr 25, 2012 at 3:11 PM, Jason Queen <Ja...@colinx.com> wrote:
> Yeah I found some docs that point to wmq ignoring what you set and assign its
> own.  The main reason I was trying to set it was for tracking purposes
> similar to this thread where you discuss keeping track of the jmsmessageid
> here:
>
> http://camel.465427.n5.nabble.com/keep-track-of-JMSMessageID-with-InOnly-exchange-td5122775.html
>
> In it you mention possible putting the create id on the header.  Has
> anything been implemented to provide that?
>

No, but after sending the message using the JMS client, then if that
client has altered/set the actual JMSMessageID, then you can access it
afterwards.


> --
> View this message in context: http://camel.465427.n5.nabble.com/JMS-route-changes-the-JMSMessageID-tp5663255p5664823.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: JMS route changes the JMSMessageID

Posted by Jason Queen <Ja...@colinx.com>.
Yeah I found some docs that point to wmq ignoring what you set and assign its
own.  The main reason I was trying to set it was for tracking purposes
similar to this thread where you discuss keeping track of the jmsmessageid
here:

http://camel.465427.n5.nabble.com/keep-track-of-JMSMessageID-with-InOnly-exchange-td5122775.html

In it you mention possible putting the create id on the header.  Has
anything been implemented to provide that?

--
View this message in context: http://camel.465427.n5.nabble.com/JMS-route-changes-the-JMSMessageID-tp5663255p5664823.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: JMS route changes the JMSMessageID

Posted by Claus Ibsen <cl...@gmail.com>.
On Tue, Apr 24, 2012 at 10:36 PM, Jason Queen <Ja...@colinx.com> wrote:
> I have a camel route that moves a message from an ActiveMQ queue to a
> WebsphereMQ queue.  In between the 2 endpoints I grab message and modify the
> body. I also grab the JMSMessageID and store it.  After this I set the
> JMSMessageID to a different number and stick it on the Exchange.  When the
> message arrives on the WebsphereMQ the JMSMessageID is different then what I
> set it to.   I'm using camel 2.8.4.   Is there a way to make camel not
> change the JMSMessageID?
>

You *cannot* control the JMSMessageID. That is entirely up to the
broker how the ID is assigned.


> --
> View this message in context: http://camel.465427.n5.nabble.com/JMS-route-changes-the-JMSMessageID-tp5663255p5663255.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Re: JMS route changes the JMSMessageID

Posted by Raul Kripalani <ra...@fusesource.com>.
There is an option on the camel-jms endpoint called
'messageIdEnabled'. Have you tried setting it to false?

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

HTH,
Raul.

On 24 Apr 2012, at 22:36, Jason Queen <Ja...@colinx.com> wrote:

> I have a camel route that moves a message from an ActiveMQ queue to a
> WebsphereMQ queue.  In between the 2 endpoints I grab message and modify the
> body. I also grab the JMSMessageID and store it.  After this I set the
> JMSMessageID to a different number and stick it on the Exchange.  When the
> message arrives on the WebsphereMQ the JMSMessageID is different then what I
> set it to.   I'm using camel 2.8.4.   Is there a way to make camel not
> change the JMSMessageID?
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JMS-route-changes-the-JMSMessageID-tp5663255p5663255.html
> Sent from the Camel - Users mailing list archive at Nabble.com.