This route will result in message stats logged every 10s, with an initial 60s delay and stats displayed even if there isn't any message traffic.
from("activemq:orders") .to("log:com.mycompany.order?level=DEBUG?groupInterval=10000&group Delay=60000&groupActiveOnly=false") .to("bean:processOrder");
The following will be logged:
"Received: 1000 new messages, with total 2000 so far. Last group took: 10000 millis which is: 100 messages per second. average: 100"