Hi

I am using ActiveMQ 5.4.2 and Camel 2.4.0. *Short description:* I am
wondering how, using some headers from messages in a route I can pull
another related message from a tap queue at the same time.

*Long description:* I have a message that comes into a "request" queue, and
is copied into a "request.tap" queue. From there I manipulate the message,
putting it in other queues as it goes through various processing steps and
eventually into a "result" queue. I want to listen to the result queue, and
when a message arrives on it, I want to use the JMSCorrelationID from this
message to select the original message from the "request.tap" queue, and
save both the "result" queue message and the "request.tap" message into a
database. I need this to be transactional.

I am using Spring xml for my routes and I can't get two "from" elements into
a route. I am having a hard time understanding how I might do this in Spring
xml. Even if I add some beans to do the processing, it seems like I will
have to make the second call from my bean (directly to the message broker
using JMS) to get the second message. Perhaps I need to write this route
directly in Java DSL; or maybe even need to write a JMS listener totally
outside of Camel. My preference is to keep it in Camel and in Spring xml,
using beans if necessary.

Any suggestions are appreciated.



--
View this message in context: 
http://camel.465427.n5.nabble.com/route-pulling-message-by-query-tp4953301p4953301.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to