Hi Bruce,

we use ActiveMQ for storing our outgoing emails in JAMES
(james.apache.org). The emails are consumed via a JMS Selector on a
given time (for retry after temporary error). This will prolly be
changed once ActiveMQ 5.4 was released with its delay feature ;)

Now we want to give the administrator some kind of feedback how many
emails are in the queue etc.

Bye,
Norman

2010/3/16 Bruce Snyder <bruce.sny...@gmail.com>:
> On Tue, Mar 16, 2010 at 1:36 AM, Norman Maurer <nor...@apache.org> wrote:
>> Hi all,
>>
>> is it somehow possible to get the exact number of items in a queue
>> with the jms api ? It would be also nice to be able to check the size
>> of items with a given selector..
>>
>> So any idea?
>
> APIs are available for this via JMX. However, that number is only good
> for that exact second in time. This is just the nature of JMS because
> messages are flowing through the system constantly. Why do you need
> the queue size?
>
> Bruce
> --
> perl -e 'print 
> unpack("u30","D0G)u8...@4vyy9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> ActiveMQ in Action: http://bit.ly/2je6cQ
> Blog: http://bruceblog.org/
> Twitter: http://twitter.com/brucesnyder
>

Reply via email to