[
https://issues.apache.org/jira/browse/CAMEL-22420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020746#comment-18020746
]
Claus Ibsen commented on CAMEL-22420:
-------------------------------------
We should add a note in the upgrade guide that duplicates processor IDs is now
detected and would fail starting the route. So end users need to change their
routes if they mistakenly have that in their code.
> camel-core - Detect duplicate processor ids within same route
> -------------------------------------------------------------
>
> Key: CAMEL-22420
> URL: https://issues.apache.org/jira/browse/CAMEL-22420
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.15.0
>
>
> If you assign the same id to multiple EIPs in the same route, then only the
> last EIP is registered in JMX.
> There duplicate ID check only applies for routes - but within a route then an
> end user may make that duplicate mistake.
> {code:java}
> <route>
> <from uri="timer:xml?period=1000"/>
> <setBody>
> <simple>Hello Camel from ${routeId}</simple>
> </setBody>
> <log message="${body}" id="log-a"/>
> <log message="222 ${body}" id="log-a"/>
> </route> {code}
>
> Here there are 2 log EIPs with the same id. The route is working correctly
> but only 1 EIP is registered in JMX and this makes management and
> observability a bit more difficult.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)