2010/1/4 Ricardo Melo <[email protected]>:
> 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/

Reply via email to