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

should consider multiple ApplicationContext instances when specifying another management.server.port

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.25.4, 3.7.3, 3.9.0
    • camel-spring-boot
    • None
    • Unknown

    Description

      As the attached reproducer, when the SB camel application has another management.server.port specified, not all camel routes from the classpath(xml, java) can be collected.
      The output is like

      2021-01-19 13:43:25.932  INFO 61489 --- [1 - timer://foo] hello from Java DSL                      : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:43:25.933  INFO 61489 --- [1 - timer://foo] hello from Camel XML                     : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:43:25.933  INFO 61489 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      

      if no management.server.port specified. Otherwise, if management.server.port specified for spring-boot-acturator, then the output is like

      2021-01-19 13:19:38.236  INFO 61101 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:19:39.227  INFO 61101 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:19:40.228  INFO 61101 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:19:41.228  INFO 61101 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      2021-01-19 13:19:42.227  INFO 61101 --- [1 - timer://foo] hello from Spring XML                    : Exchange[ExchangePattern: InOnly, BodyType: null, Body: [Body is null]]
      

      Camel route from classpath not collected

      Attachments

        1. camel-springboot-example.tar
          36 kB
          Freeman Yue Fang

        Issue Links

          Activity

            People

              ffang Freeman Yue Fang
              ffang Freeman Yue Fang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: