activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From konura <aboguslav...@bluecatnetworks.com>
Subject Re: Consume specific message from queue
Date Mon, 24 Jan 2011 16:46:43 GMT

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.

Mime
View raw message