Wednesday, February 9, 2011

Applying multiple route policies on Camel Routes

Available as of Camel 2.7
I have recently added a enhancement in Camel 2.7 to apply multiple route policies concurrently on a Camel route.

It is often necessary to apply multiple policies such as throttling, scheduling, ACL's etc to routes concurrently based on the organizational integration requirements. In earlier versions of Camel the route policy was limited to one policy per route.

In the example below, the route testRoute has a startPolicy and throttlePolicy applied concurrently. Both policies are applied as necessary on the route




   
   
        

    

        

   

    
        
        
    


Complete Examples
RoutePoliciesTest.java
RoutePoliciesRefTest.java
SpringRoutePoliciesTest.xml

Further Details
https://issues.apache.org/jira/browse/CAMEL-3254