You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by nap <na...@adchemy.com> on 2011/06/16 05:02:09 UTC

Consuming from a download folder

Hi,

I'm consuming a file from a download directory using the file component. How
can I set the component to only consume when the file is ready? The file
download is being triggered through a Selenium script using Firefox.


Thanks,

Nap

--
View this message in context: http://camel.465427.n5.nabble.com/Consuming-from-a-download-folder-tp4493369p4493369.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Consuming from a download folder

Posted by Claus Ibsen <cl...@gmail.com>.
On Thu, Jun 16, 2011 at 5:02 AM, nap <na...@adchemy.com> wrote:
> Hi,
>
> I'm consuming a file from a download directory using the file component. How
> can I set the component to only consume when the file is ready? The file
> download is being triggered through a Selenium script using Firefox.
>

There is a readLock option where you can configure various strategies.
Likewise there is a doneFileName that can be used as well.
And you have a filter option where you can implement custom java code
logic to say yes|no to the file.


>
> Thanks,
>
> Nap
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Consuming-from-a-download-folder-tp4493369p4493369.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/