You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by umashankar29 <um...@gmail.com> on 2013/05/04 18:39:50 UTC
IS the File polling possible in CAMEL.
Hi, We have a requirement in polling file from a folder and transform . Is
it possible to have this implemented thru the Filecomponent thru getting
this endpoint ?
Thanks
--
View this message in context: http://camel.465427.n5.nabble.com/IS-the-File-polling-possible-in-CAMEL-tp5732019.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: IS the File polling possible in CAMEL.
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yeah you can configure the file endpoint with poll every X time, and
limit the poll to Y files.
eg you can set these options
delay=2m
maxMessagesPerPoll=200
notice 2m is shorthand for 2 minutes.
The file component is documented here
http://camel.apache.org/file2
On Sun, May 5, 2013 at 10:57 AM, umashankar29 <um...@gmail.com> wrote:
> Thanks Clause, My next query is can we be able to restrict the incoming file
> by polling the files to say ~200 Files for every 2 mins .
>
> Thanks
> Shan
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/IS-the-File-polling-possible-in-CAMEL-tp5732019p5732030.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: IS the File polling possible in CAMEL.
Posted by umashankar29 <um...@gmail.com>.
Thanks Clause, My next query is can we be able to restrict the incoming file
by polling the files to say ~200 Files for every 2 mins .
Thanks
Shan
--
View this message in context: http://camel.465427.n5.nabble.com/IS-the-File-polling-possible-in-CAMEL-tp5732019p5732030.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: IS the File polling possible in CAMEL.
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Yes that is possible.
You can do a Camel route that starts from file and then transform the message.
from file
transform
If you are new to Camel I suggest reading this article
http://java.dzone.com/articles/open-source-integration-apache
Or check out some of the others at listed at:
http://camel.apache.org/articles.html
And then read a bit about the message translator eip (eg to transform)
http://camel.apache.org/message-translator.html
The EIPs in Camel is listed here
http://camel.apache.org/enterprise-integration-patterns.html
On Sat, May 4, 2013 at 6:39 PM, umashankar29 <um...@gmail.com> wrote:
>
> Hi, We have a requirement in polling file from a folder and transform . Is
> it possible to have this implemented thru the Filecomponent thru getting
> this endpoint ?
>
> Thanks
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/IS-the-File-polling-possible-in-CAMEL-tp5732019.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen