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

camel-core - context.addComponent(name, instance) should auto start if needed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • camel-core
    • None
    • Unknown

    Description

      If you use getComponent then camel will create and auto start the component if needed. But if you use addComponent(name, instance) with an existing instance you have created manually then its not auto started.

      We should likely make this consistent with getComponent.

      Jeremy had a glitch with salesforce with out own test.
      https://github.com/apache/camel/blob/03ec304bd09cc83adb92bffe2d1339a5dac411d1/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/AbstractSalesforceTestBase.java#L47-L67

      https://camel.zulipchat.com/#narrow/stream/257298-camel/topic/Problem.20with.20nightlies

      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: