How to execute same camel code in all the routes ?
Issue
- We have now set a standard way to log the entry and exit points to all our routes like the following.
<log message="route=${routeId}, type=onEntry, breadcrumbId=${header.breadcrumbId}"/>
....
<log message="route=${routeId}, type=onExit, breadcrumbId=${header.breadcrumbId}"/>
- Rather than doing this for each route is there a simple configuration in camel that I can automatically do this for each route, rather than me doing it manually!?! I have looked at AOP and Interceptors, but I dont think they give me exactly what we require. Can you possibly provide other options???
Environment
- Red Hat JBoss Fuse
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.