i am creating some routes with jave in a for loop (all is working fine). now
i need to add "throttle" to the outer route definition" but with it i get:
Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route cepToRtdmdfESP://192.168.154.128:55555/TEST/TEST/PCRF
_DATA_USAGE_STREAM at: >>> Throttle[{10} request per 1000 millis -> []] <<<
in route: Route(cepToRtdmdfESP://192.168.154.128:55555/TEST/TEST/PCRF_...
because of Definition has no children on Throttle[{10} request per 1000
millis -> []]
the structure is as follows (pseudo code) - all in "configure()"
foreach(fromEndpoint){
RouteDefinition rd = from(fromEndpoint)
if(throttleOn){
rd.throttle(10)
}
rd.process(someProcessor)
MulticastDefinition md = rd.multicast();
//targets
foreach(targets){
md.to(target)
}
}
what went wrong? how to throttle correctly?
--
View this message in context:
http://camel.465427.n5.nabble.com/Exception-on-adding-throttle-Definition-has-no-children-on-Throttle-tp5754255.html
Sent from the Camel - Users mailing list archive at Nabble.com.