What is the difference between
configure {
from (blah blah)
.id(blah)
....
}
and
configure {
from (blah blah)
.routeId(blah)
.. ..
}
What is the difference between
configure {
from (blah blah)
.id(blah)
....
}
and
configure {
from (blah blah)
.routeId(blah)
.. ..
}
From the "camel" guy. https://mcmap.net/q/1172042/-how-to-set-id-of-camel-processor-or-other-route-ingredients
.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.)
Both are used for identifying different statements. .id()
is for identifying statements in a route. .routeId()
are for identifying routes.
By adding ids you can in your tests use adviceWith()
to mock or inject or remove parts of your route to perform automated tests without having access to backend systems.
© 2022 - 2024 — McMap. All rights reserved.
routeId
? – Lammergeier