camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taariq Levack <>
Subject How to set RoutePolicyRef in java DSL
Date Wed, 16 Jun 2010 10:22:25 GMT

I'm using Spring to set up the context but java to build the routes.
I've got the bean for throttling route policy defined in Spring as per the example
and in the java route I tried this during configure, after adding a route...

        RoutesDefinition routeDef = getRouteCollection();


That throws a java.util.NoSuchElementException.

Can I do this in java or should I set up the routes in xml?


View raw message