Hi You can also use ActiveMQ advistory messages to get stats for a queue http://activemq.apache.org/advisory-message.html
Or use JMX API on ActiveMQ. Which can be called from REST using jolokia which comes out of the box in recent ActiveMQ release. See bottom of this page http://activemq.apache.org/rest.html On Sat, Apr 12, 2014 at 11:53 AM, Larry Meadors <[email protected]> wrote: > Is there a clever way to do a "peek" operation with AMQ in camel? > > I want to trigger an action if there are any messages in a queue, but > not consume any of them. > > Larry -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
