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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.21.0, 4.0.0, 4.1.0
    • 3.21.2, 3.22.0, 4.0.2, 4.2.0
    • came-core
    • None
    • 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: