On Thu, 2010-09-16 at 07:57 -0700, lopan wrote: > Hi, > > I am using activemq-cpp, I need a way to peek the next message in an > specific queue (without removing the message) and get the number of pending > messages in this queue. Surprinsingly, the documentation has no information > about this. > > Is there any way I can accomplish this? > > Thanks.
You could use the Broker Statistics plugin: http://activemq.apache.org/statisticsplugin.html Regards -- Tim Bish Open Source Integration: http://fusesource.com Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/