Hi

See the red warning box at the EIP page
http://camel.apache.org/content-enricher.html

Its a current limitation.

There is a JIRA ticket logged to improve this for the future, possible
Camel 3.0 at the latest.
Its not super easy to fix due the API contract of PollingConsumer.



On Mon, Apr 23, 2012 at 11:26 AM, marnold <[email protected]> wrote:
> Hi,
>
> I receive a JMS message with a filename as a message property.  I then want
> to use the file component to read this file from a directory, waiting if
> necessary if the file does not exist.
>
> This is what I have tried:
>
>        <route id="fileRoute">
>                <from uri="jms:queue:queueReadConfirm"/>
>                <pollEnrich
> uri="file:src/test/resources?move=.done&amp;fileName=${in.header.fileName}"
> timeout="-1"/>
>                <to uri="jms:queue:queue.incomingReplies"/>
>        </route>
>
> But this doesn't work.  It just picks up the first file it finds in the
> directory, regardless of its filename.
>
> Am I doing something simple wrong?  Or am I trying to achieve this in the
> wrong way..?
>
> Thanks in advance.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Get-specific-dynamic-file-tp5658785p5658785.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to