naming routes with setId doesn't work on a specific machine

2014-07-24 Thread dermoritz
We encountered a very strange behavior. In our camel app we set the id of all routes via setId(id). This is working fine so far. One of our route builders generates n routes in a for loop and uses Prefix+EndUri as route id. Here set Route is called on a ThrottleDefinition. This is working fin on

Re: naming routes with setId doesn't work on a specific machine

2014-07-24 Thread Claus Ibsen
Hi Use .setRouteId to set the route id On Thu, Jul 24, 2014 at 2:00 PM, dermoritz tantea...@hotmail.com wrote: We encountered a very strange behavior. In our camel app we set the id of all routes via setId(id). This is working fine so far. One of our route builders generates n routes in a for

Re: naming routes with setId doesn't work on a specific machine

2014-07-24 Thread dermoritz
on which class i can found setRouteId? It seems not part of RouteDefinition (http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/model/RouteDefinition.html) - i can't put it within route definition (from...to)?! but why to use another method here, until now this is

Re: naming routes with setId doesn't work on a specific machine

2014-07-24 Thread Matt Sicker
In the from...to... you would do: from(foo).routeId(CustomId).to(...) On 24 July 2014 07:49, dermoritz tantea...@hotmail.com wrote: on which class i can found setRouteId? It seems not part of RouteDefinition (

Re: naming routes with setId doesn't work on a specific machine

2014-07-24 Thread dermoritz
ok i found the solution: the problem was - the config on production was slightly diferent - without throttle. Calling setId on a ThrottleDefinition simply doesn't work (or at least does not set the route id). So i changed the code to set the id before doing routeDef = routeDef.throttle (How to