[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: Re: Consume specific message from queue
From: konura <aboguslavsky () bluecatnetworks ! com>
Date: 2011-01-24 16:46:43
Message-ID: 1295887603462-3234383.post () n4 ! nabble ! com
[Download RAW message or body]
Finally, I found quite a simple solution.
It's creating a Q consumer with selector, just like this
MessageConsumer consumer = sess.createConsumer(destination, selector, true);
ActiveMQObjectMessage objMsg = (ActiveMQObjectMessage)
consumer.receiveNoWait();
where selector is an SQL-style string: prope1='val1' AND prop2='val2'
Anyway, it would be nice to know how to construct a URL for MessageServlet.
--
View this message in context: \
http://activemq.2283324.n4.nabble.com/Consume-specific-message-from-queue-tp3230481p3234383.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic