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

EndpointRegistry in camel-core that allows refer endpoints using and logical id, like you can do in spring

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.12.0
    • None
    • camel-core
    • None
    • Moderate

    Description

      Generally, it's more efficient/loosely coupled to send to endpoint aliases, so we might change implementation of endpoint without changing the code:

          // in cases of dynamic routing
          producer.asyncSend("specificMessageChannel", new Processor() {
              ...
          });
      

      It's possible to do it through Spring DSL, but impossible to register endpoints from route builder if we use spring. Also it is easier to configure number of consumers and etc for endpoints.

      <endpoint id="specificMessageChannel" uri="seda:internalProcessing?concurrentConsumers=8" />
      

      JndiRegistry has "bind" method and ApplicationContextAwareRegistry does not have it.

      Another use-case for that is camel-test component

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nfx Serge Smertin
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: