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

camel-eventadmin does not allow multiple consumers with the same URI

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: osgi
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      I have an application which uses the OSGi EventAdmin to send events when something important happens. I want to register several EventHandlers for the same event topic to perform different tasks.

      Using the eventadmin endpoint I can register an endpoint that listens on the OSGi Events.
      However if I try to define several routes with the same event topic I get the following exception:

      org.apache.camel.FailedToStartRouteException: Failed to start route myapp.example.custom-events because of Multiple consumers for the same endpoint is not allowed: Endpoint[eventadmin://mycustom/events/*]

      I think it should be possible to register several Endpoints for the same Event topic as it is possible to have several EventHandlers listening on the same topic.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                frankeda David Franke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: