Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19967

camel-core - Default RouteConfigurationBuilder written in Java not enabled on XML routes

    XMLWordPrintableJSON

Details

    • Unknown
    • Regression

    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

        1. CAMEL-19967.zip
          3 kB
          Benjamin Graf

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              graben Benjamin Graf
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: