I want something like:
But PollingConsumer API does not allow passing FILE_NAME from outside.
Allow passing options to PollingConsumer from outside
enrich and pollEnrich should accept an expression for dynamic uris
A solution to this problem would be to allow pollEnrich(Expression) and build the endpoint from the expression like in dynamicrouter.
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.
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.
There is another ticket about this