Details
Description
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 introduces another RouteConfigurationBuilder which overrides policy set in RouteConfigurationBuilder.java
Test case to verify CAMEL-19967.zip
Workaround:
<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>
Attachments
Attachments
Issue Links
- links to