You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ilango_g <il...@yahoo.com> on 2008/10/14 01:53:56 UTC

implementing a queue listener to make routing decision

Actually I have refined my question further:
There would be a queue that has messages
sitting on it. This queue has a listener that listens for messages, picks up
a certain message (FIFO perhaps), and sends it off to a different queue
(channel) based on some information in a header field that identifies the
destination queue the message is intended for. For now, I assume that I have
one message in my source queue that is meant to be delivered to one of three
queues, Q1, Q2, Q3, based on the information in the JMS header of the
message.

If a sample is available that would be great to start off.

thanks 
-- 
View this message in context: http://www.nabble.com/implementing-a-queue-listener-to-make-routing-decision-tp19964969p19964969.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


RE: implementing a queue listener to make routing decision

Posted by Andres Rangel <an...@corp.moniker.com>.
This is a content based router.
You can use camel to accomplish what you are looking for very easy

Just go to:
http://activemq.apache.org/camel/content-based-router.html
for more info


--
Andres Rangel
Sw Engineer
Moniker.com




-----Original Message-----
From: ilango_g [mailto:ilangocal@yahoo.com] 
Sent: Monday, October 13, 2008 7:54 PM
To: users@activemq.apache.org
Subject: implementing a queue listener to make routing decision


Actually I have refined my question further:
There would be a queue that has messages
sitting on it. This queue has a listener that listens for messages,
picks up
a certain message (FIFO perhaps), and sends it off to a different queue
(channel) based on some information in a header field that identifies
the
destination queue the message is intended for. For now, I assume that I
have
one message in my source queue that is meant to be delivered to one of
three
queues, Q1, Q2, Q3, based on the information in the JMS header of the
message.

If a sample is available that would be great to start off.

thanks 
-- 
View this message in context:
http://www.nabble.com/implementing-a-queue-listener-to-make-routing-deci
sion-tp19964969p19964969.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.