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

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.8.0
    • camel-core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: