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

enrich and pollEnrich should accept an expression for dynamic uris

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.0
    • Component/s: camel-core, eip
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We should consider using an expression for uri's for the enrich and pollEnrich EIP's so we can poll from a dynamic computed endpoint.
      However it will break API as currently the uri is mandatory.

      It's a bit the same problem with to EIP which is also static uri. However for to EIP we have recipientList which is the dynamic to.
      So we need a similar dynamic for enrich and pollEnrich.

      This also solves the problem with that people wan't to provide details from the current exchange in the endpoint uri. We have a ticket for that.
      eg enrich("file:inbox?fileName=${header.nameToPickUp}")

      So if we can do it using an expression it could be
      .enrich().simple("file:inbox?fileName=${header.nameToPickUp}")

      See nabble
      http://camel.465427.n5.nabble.com/pollEnrich-consumer-with-selector-tp4939908p4939908.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                13 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: