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

camel-core - Log on startup if multiple instances of same component are in use

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.8.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Mostly you would use the default component instances. But for messaging components like JMS you may have one for ActiveMQ and another for WMQ etc and therefore multiple instances in the same Camel.

      However with SB you can mistakenly configure a new JMS component such as

      @Bean
      JmsComponent jmsComponent()

      { ... }

      And think that "jms" will use it. But it uses the bean id, which is method name by default in SB, so you have 2 JMS components.

      Having a LOG at startup to help show this would better spot this problem.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: