Camel
  1. Camel
  2. CAMEL-4163

Allow polling consumer to accept parameters such as a header with a file name to poll

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      I want something like:

      .setHeader(Exchange.FILE_NAME).xpath("...")
      .pollEnrich("file:/test/data", 10000)
      

      But PollingConsumer API does not allow passing FILE_NAME from outside.

      See http://www.nabble.com/pollEnrich-doesn%27t-look-for-FILE_NAME-ts25458854.html

        Issue Links

          Activity

          Hide
          Christian Schneider added a comment -

          A solution to this problem would be to allow pollEnrich(Expression) and build the endpoint from the expression like in dynamicrouter.

          Show
          Christian Schneider added a comment - A solution to this problem would be to allow pollEnrich(Expression) and build the endpoint from the expression like in dynamicrouter.
          Hide
          Claus Ibsen added a comment -

          This will break the API in the XML DSLs, do we want to go down that path?
          Most likely as the old ticket had 2 votes + 4 watchers, so some interrest from the community.

          Show
          Claus Ibsen added a comment - This will break the API in the XML DSLs, do we want to go down that path? Most likely as the old ticket had 2 votes + 4 watchers, so some interrest from the community.
          Hide
          Claus Ibsen added a comment -

          Need to investigate if we can do a compatible way in 2.x as this would be a good improvement. Otherwise defer to 3.0 where API changes can be done.

          Show
          Claus Ibsen added a comment - Need to investigate if we can do a compatible way in 2.x as this would be a good improvement. Otherwise defer to 3.0 where API changes can be done.

            People

            • Assignee:
              Claus Ibsen
              Reporter:
              Claus Ibsen
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Development