Search code examples
javaapache-camelenterprise-integration

In Apache Camel RouteBuilder configure, what is the difference between .id() and .routeId()


What is the difference between

configure {
  from (blah blah)
  .id(blah)
  ....
}

and

configure {
  from (blah blah)
  .routeId(blah)
  .. ..
}

Solution

  • From the "camel" guy. https://stackoverflow.com/a/28579582/6785908

    .id is for Identifying individual steps (for Example, processors) in a Route.

    On the other hand, .routeId is for Identifying the route itself. (You can even bring a route alone down or up by giving the id, without bringing down the application.)