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

Context component conflates endpoints with the same local id from different CamelContexts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.3
    • 2.16.4, 2.17.1, 2.18.0
    • camel-core
    • None
    • Patch Available
    • Unknown

    Description

      The context component experiences clashes between endpoints with the same local name, but from different contexts. If two contexts both contain a local endpoint "direct:out", any route involving both endpoints will fail to start due to a FailedToStartRouteException; "Multiple consumers for the same endpoint is not allowed: Endpoint[direct://out]."

      As an example, the following set of routes will fail due to this issue:
      from("direct:in").to("blackBox:in");
      from("blackBox:out").to("direct:out");
      from("direct:out").to("mock:results");

      See thread:
      http://camel.465427.n5.nabble.com/Context-Component-issue-td5770975.html

      Attachments

        1. CAMEL-9200.patch
          9 kB
          Aaron Birkland

        Activity

          People

            davsclaus Claus Ibsen
            birkland Aaron Birkland
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: