How to execute same camel code in all the routes ?

Solution Unverified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content