[ 
https://issues.apache.org/jira/browse/CAMEL-27754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152698#comment-18152698
 ] 

Guillaume Nodet commented on CAMEL-27754:
-----------------------------------------

This issue is being investigated by a coding agent (on behalf of gnodet).

Triage analysis: The bug is confirmed. RoutesDefinition.onCompletion() (Java 
DSL) explicitly calls setRouteScoped(false) at line 418, but 
YamlRoutesBuilderLoader (line 222) adds OnCompletionDefinition to the route 
collection without setting routeScoped=false. Same issue in 
AbstractCamelContextFactoryBean for Spring XML. The fix is to call 
setRouteScoped(false) in both places, mirroring what CAMEL-25420 did for route 
configurations.

_Note: This comment was generated by an AI coding agent and requires manual 
verification._

> camel-core - top-level onCompletion in YAML and Spring XML fires once per 
> route instead of once per exchange
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27754
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27754
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: Adriano Machado
>            Assignee: Guillaume Nodet
>            Priority: Major
>




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to