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&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.