camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manchandap <>
Subject TracedRouteNodes not populated when Exchange is processed in Event Notifier
Date Thu, 24 Apr 2014 10:35:11 GMT
Hi Camel Experts,

I am creating a custom Event Notifier by extending the EventNotifierSupport
class. I am interested in Exchange related events for auditing purpose.
While processing the Exchange Object i found out that TracedRouteNodes
object is not containing any value. This is how I am accessing this object:

/UnitOfWork uWork = exchange.getUnitOfWork();
TracedRouteNodes traced = uWork.getTracedRouteNodes();
System.out.print(" NODES: "+ traced.getNodes());/

The /traced.getNodes()/ returns an empty List. 

However, if I enable tracing on the context by calling the following code,
this object gets populated. 


/My Event Notifier is enabled as follows:

		MyEventNotifier notifier = new MyEventNotifier();
		List<EventNotifier> notifiers = new ArrayList<EventNotifier>();

Is this an intentional behavior or am I missing something here. My
understanding is that Exchange should be same in both the cases.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message