Hello,
I want to know if there is a simple way in camel to measure the time taken
by route to read all messages present in the queue. Example My queue get
populated on some time intervals , so i want to know how time it took just
for the JMS component to read from the queue and not the full time cycle of
the exchange.
MY route as below
<route routePolicyRef="routeQueuePolicy"
shutdownRunningTask="CompleteCurrentTaskOnly" id="ProcessQueue"
autoStartup="true">
<from uri="wmq:queue:TESTQ2?acknowledgementMode=2"/>
<doTry>
<to
uri="bean:routeQueueBean?method=parseQueueMessage(${body},'databasebean')"/>
<doCatch>
<exception>java.lang.Exception</exception>
<handled><constant>false</constant></handled>
<process ref="stopRouteProcessor"/>
</doCatch>
<aggregate strategyRef="queueBatchStrategy"
completionTimeout="3000" completionSize="100" completeAllOnStop="false">
<correlationExpression>
<constant>true</constant>
</correlationExpression>
<to
uri="bean:routeQueueBean?method=processQueueMessage('databasebean')"/>
</aggregate>
</doTry>
</route>
I want only the time taken by the route to read the all the messages in the
queue present at the time. Like a batch total time .
--
View this message in context:
http://camel.465427.n5.nabble.com/Time-taken-to-read-messages-from-queue-tp5785225.html
Sent from the Camel - Users mailing list archive at Nabble.com.