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

camel-ref: only add the endpoint into camelContext when not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.15.0
    • 3.11.6, 3.14.2, 3.16.0
    • camel-core
    • None
    • Unknown

    Description

      Currently camel-ref endpoint always adds the underlying endpoint like
      getCamelContext().addEndpoint(getEndpoint().getEndpointUri(), endpoint);
      We should check if it exists or not firstly like
      if (getCamelContext().getEndpoint(getEndpoint().getEndpointUri()) == null)

      { getCamelContext().addEndpoint(getEndpoint().getEndpointUri(), endpoint); }

      Because if we re-add the same endpoint, this endpoint actually will be stopped

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: