Hi,
I want to record the time costs per route. and extends EventNotifierSupport
: 
------------------------notify()----------------------
ExchangeSentEvent sent = (ExchangeSentEvent) event;
sent.getTimeTaken()
-----------------------------------------------------

but it seems just record the last Endpoint time costs;


-------------------MyRoute-------------------
                <camel:route>
                        <camel:from uri="jms:queue1" />
                        <camel:transacted />
                        <camel:bean beanType="com.bean.BeanA"></camel:bean>
                        <camel:to uri="jms:queue2" />
                </camel:route>
------------------------------------------------
in BeanA.java , I use Thread.sleep(5000);
but the print is like:
             Endpoint[jms://queue2] costs 14 ms.


-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Use-EventNotifierSupport-record-time-is-not-exactly-tp3404610p3404610.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to