You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Ashwin Karpe <ak...@fusesource.com> on 2011/01/11 00:51:44 UTC

Re: How to query for active mq size using camel without browse all the objects?

Hi,

Have you considered Virtual Queues/Topics in ActiveMQ.

http://activemq.apache.org/virtual-destinations.html
http://activemq.apache.org/virtual-destinations.html 

This should help you create a virtual queue/topic that directs the payload
to 2 real queues/topics at the back. The messages can be allowed to collect
in one queue and the counting can happen using a consumer thread connected
to the other queue.

The client is not impacted and sends each message only once.

This could be another strategy without using browse...

Hope this helps.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com 
---------------------------------------------------------
-- 
View this message in context: http://camel.465427.n5.nabble.com/How-to-query-for-active-mq-size-using-camel-without-browse-all-the-objects-tp3333920p3335725.html
Sent from the Camel - Users mailing list archive at Nabble.com.