Message reordering in Camel and ActiveMQ
Issue
- We have a route that takes in a message, splits it up and then places it on a queue. We then have another route that reads off of that queue and uses a Content-Based Router (CBR) to send out to another queue.
- The messages come in on a certain sequence, but it appears the CBR is changing the order of messages once consumed.
- I've set up a transacted ActiveMQ component for a message queue, with two concurrent consumers. I want messages for a particular group to be processed in order, so I'm using the JMSXGroupID header to ensure that messages for one group get processed by one consumer. This works fine, until I mark the route as being transacted. When the route is transacted, it seems that either consumer will process a message, irrespective of the JMSXGroupID. Is this something you've seen before?
Environment
- Red Hat JBoss Fuse
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.