Hi Its likely because you have both id and routeId in the from, so remove id, and use routeId to assign the route id. Also its very often not needed to set id in the individual EIPs but just use the auto assigned ids.
On Fri, Jul 15, 2022 at 10:02 AM strutdepot-discuss...@yahoo.com.INVALID <strutdepot-discuss...@yahoo.com.invalid> wrote: > Hi, > I have the following route: > from("rabbitmq:A").id("rabbit_from") .routeId("route_id") > .log("${body}") .to("rabbitmq:B").id("rabbit_from") > But get a "IllegalArgumentException: You can only set routeId one time per > route." (pointing to .routeId("route_id")). According to documentaion, id > defines the id of the node and routeId defines the id of the route. What am > I doing wrong? > > > > | > | > | | > RouteDefinition - camel-core-model 3.17.0 javadoc > > > | > > | > > | > > > > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2