activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <bur...@spinn3r.com>
Subject JMS message ID set based on sequence and overwrites the client specified JMS message id?
Date Sat, 04 Apr 2015 23:09:55 GMT
I’m trying to generate unique message IDs so that I can idempotently
produce messages from our ‘loader’ so that items don’t get processed more
than once.

The JMS Message ID should do that .. but it looks like when I call
producer.send() it’s ALWAYs overwritten by a custom message ID:


In ActiveMQSession.send it just overwrites it:

msg.setMessageId(new MessageId(producer.getProducerInfo().getProducerId(),
sequenceNumber));

… so no matter WHAT I want to send , it’s just overwritten.

I’m really hoping I’m doing something or that this is just a bug because it
would be a shame to lose this feature.

-- 

Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message