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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.