camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Strachan <james.strac...@gmail.com>
Subject Re: Issue trying to browse a activemq queue
Date Mon, 04 Jan 2010 17:18:12 GMT
2010/1/4 Ricardo Melo <ricardo@cflex.com.br>:
> Thank you all fot the answers.
>
> It works now with the Browsable endpoint, thanks!
>
> Very clean and elegant solution.

Glad it worked :)

BTW as Claus mentions, its actually inefficient under the covers if
all you want is the size as it basically loads all the messages into
RAM one by one to get the size. We should add an ActiveMQ Camel
component optimisation of the List.size() method one day so that the
implementation just uses the ActiveMQ statistics to find out the size
of the queue without actually iterating through the list.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Mime
View raw message