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

XML route configurations ignored without both XML IO and JAXB XML loaded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.0, 3.20.2, 4.0-M2
    • 3.21.0, 4.0-M3, 4.0.0
    • camel-spring-boot
    • None
    • Unknown

    Description

      XML route configurations are ignored unless both camel-xml-io-dsl-starter and camel-xml-jaxb-dsl-starter are loaded; XML routes are started without configurations.

      To reproduce:

      • check out camel-spring-boot-examples, either main branch or camel-spring-boot-examples-3.20.0 tag
      • navigate to routes-configuration subdir
      • remove dependency on either DSL from pom.xml
      • run mvn spring-boot:run

      Result:

      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Routes startup (started:3)
      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route1 (timer://java) (source: java:29)
      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route2 (timer://xml)
      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Started route3 (timer://yaml) (source: my-yaml-route.yaml:22)
      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Routes configuration:
      2023-03-15 15:10:37.665 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : route1 (javaError)
      2023-03-15 15:10:37.666 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : route3 (yamlError)
      2023-03-15 15:10:37.666 INFO 24848 — [ main] o.a.c.impl.engine.AbstractCamelContext : Apache Camel 3.20.0 (MyCamel) started in 1s43ms (build:80ms init:329ms start:634ms)

      XML route is loaded and started, but without the configurations. No error or warning is logged about missing configuration.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            jsz Jacek Szymański
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: