Re: Consume specific message from queue

2011-01-24 Thread konura
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:

Consume specific message from queue

2011-01-21 Thread konura
Hello everybody! Is there any way to consume a specific message from the queue? I have a code (in Java) which creates a QueueBrowser and I can see what's in queue. I would like to test the content of the message and delete it if necessary. I also came across MessageServlet, but I could not

Re: Consume specific message from queue

2011-01-21 Thread konura
joe_fernandez wrote: What about a message selector? http://activemq.apache.org/selectors.html Thank you, but do you have a Java code example or example of URL for MessageServlet ? -- View this message in context:

Re: queue still exist even after removal from conf/activemq.xml

2011-01-14 Thread konura
ives wrote: Does the queue still contain messages? Nop -- View this message in context: http://activemq.2283324.n4.nabble.com/queue-still-exists-even-after-removal-from-conf-activemq-xml-tp3216681p3217711.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: queue still exist even after removal from conf/activemq.xml

2011-01-14 Thread konura
Reynald Borer-2 wrote: Are there any clients still registered on this destination maybe? On Friday, January 14, 2011 at 15:13 , konura wrote: ives wrote: Does the queue still contain messages? Nop -- View this message in context: http://activemq.2283324.n4

Re: queue still exist even after removal from conf/activemq.xml

2011-01-14 Thread konura
artnaseef wrote: Is it possible that the startup of ActiveMQ is picking up a config file that still has the queue entry? Can you clear out the kahadb directory and try again? If it is still created from a clean kahadb data directory, something must be triggering the creation of the

Re: queue still exist even after removal from conf/activemq.xml

2011-01-14 Thread konura
artnaseef wrote: The Logging broker plugin will tell you when a connected client or broker creates a destination: broker ... ... plugins loggingBrokerPlugin logInternalEvents=true logConnectionEvents=false/ /plugins ... /broker With this, you will see Adding

queue still exist even after removal from conf/activemq.xml

2011-01-13 Thread konura
Hello! I created a queue by writing it in the conf/activemq.xml like this: broker xmlns=http://activemq.apache.org/schema/core; .. destinations queue physicalName=auto_244 / .. ... /destinations I could see the queue in web UI and work just

Re: queue still exist even after removal from conf/activemq.xml

2011-01-13 Thread konura
Thank you, but I tried it. The queue keeps showing up in the web UI. -- View this message in context: http://activemq.2283324.n4.nabble.com/queue-still-exists-even-after-removal-from-conf-activemq-xml-tp3216681p3216779.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.