[ 
https://issues.apache.org/jira/browse/CAMEL-19967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-19967.
---------------------------------
    Resolution: Fixed

> camel-core - Default RouteConfigurationBuilder written in Java not enabled on 
> XML routes
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-19967
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19967
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core-engine
>    Affects Versions: 3.21.0, 4.0.0
>         Environment: 
>            Reporter: Benjamin Graf
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.21.2, 3.22.0, 4.0.2, 4.2.0
>
>         Attachments: CAMEL-19967.zip
>
>
> In Camel versions prior to 3.21.0 it was possible to write 
> {{RouteConfigurationBuilder}} configurations in Java that gets enabled on 
> Camel routes written in XML DSL.
> This is not possible any more, maybe due to a regression from CAMEL-19156!
> It seems that the switch from {{RouteBuilder}} to 
> {{RouteConfigurationBuilder}} in 
> [JaxbXmlRoutesBuilderLoader.java|https://github.com/apache/camel/blob/b2932b11eadeca956bedecb31c1b76dd7b29de00/dsl/camel-xml-jaxb-dsl/src/main/java/org/apache/camel/dsl/xml/jaxb/JaxbXmlRoutesBuilderLoader.java#L57]
>  introduces another {{RouteConfigurationBuilder}} which overrides policy set 
> in 
> [RouteConfigurationBuilder.java|https://github.com/apache/camel/blob/b2932b11eadeca956bedecb31c1b76dd7b29de00/core/camel-core-model/src/main/java/org/apache/camel/builder/RouteConfigurationBuilder.java#L106]
> Test case to verify  [^CAMEL-19967.zip]
> Workaround:
> {code:xml}
> <dependency>
>     <groupId>org.apache.camel.springboot</groupId>
>     <artifactId>camel-spring-boot-xml-starter</artifactId>
>     <version>${camel-version}</version>
>     <exclusions>
>         <exclusion>
>             <groupId>org.apache.camel</groupId>
>             <artifactId>camel-xml-jaxb-dsl</artifactId>
>             <version>${camel-version}</version>
>         </exclusion>
>     </exclusions>
> </dependency>
> <dependency>
>     <groupId>org.apache.camel</groupId>
>     <artifactId>camel-xml-io-dsl</artifactId>
>     <version>${camel-version}</version>
> </dependency>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to