December 2013
Intermediate to advanced
424 pages
9h 7m
English
It is frequently necessary to execute the same processing steps within multiple routes. Camel provides you with a mechanism to call routing steps in a shared route. You can then reuse that route in a similar fashion to a method in a regular Java program.
This recipe will show you a strategy for developing your routes so that common routing tasks can be defined within a shared route called from other routes.
Determine the routing logic that you would like to reuse, and move it to a route that consumes from a direct: URI.
The Java code for this recipe is located in the org.camelcookbook.structuringroutes.direct package. The Spring XML files are located under src/main/resources/META-INF/spring ...
Read now
Unlock full access