osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Logging the execution time over multiple routes


We have the following scenario. The aggregate has a timeout.
Route1
JMS/REST ---> transform --> aggregate --> Queue.

Route2
Queue --> transform-to-xml ---> SAP.

We want to find out the total time it took to send a payload into SAP. The
start time should be when the first payload in the batch was received.
Using that we can calculate the total time as the last step on the second
route.

Is there a reliable way to propagate the start time of the payload across
the routes? I was thinking about using a header as it gets preserved over
JMS.

Any suggestions ?

Regards,

Rajith Muditha Attapattu <http://rajith.2rlabs.com/>