You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jishnu <ji...@wipro.com> on 2014/05/22 13:12:20 UTC
Camel lock while multiple routes polling from same file endpoint
There exist a scenario where multiple routes are polling from same folder
.And when a file is locked by one route the other route gives an IOEXception
and moves on to the next file to poll. Is there any way i could bypass the
Exception throwing by setting any attribute.
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel lock while multiple routes polling from same file endpoint
Posted by Reji Mathews <co...@gmail.com>.
Hi Jishnu
What exactly is the business requirement ?
On 22/05/2014 5:29 pm, "Jishnu" <ji...@wipro.com> wrote:
> There exist a scenario where multiple routes are polling from same folder
> .And when a file is locked by one route the other route gives an
> IOEXception
> and moves on to the next file to poll. Is there any way i could bypass the
> Exception throwing by setting any attribute.
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Re: Camel lock while multiple routes polling from same file
endpoint
Posted by Jishnu <ji...@wipro.com>.
Notice from Camel 2.10 onwards the read locks changed, fileLock and rename
will also use a markerFile as well, to ensure *not picking up files that may
be in process by another Camel consumer *running on another node (eg
cluster). This is only supported by the file component (*not the ftp
component*).
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467p5751511.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel lock while multiple routes polling from same file endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, May 23, 2014 at 10:54 AM, Jishnu <ji...@wipro.com> wrote:
> I couldnt fing find any way to resolve the issue because my component is FTP
>
The FTP component extends File component, so many of the options apply
to it too.
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467p5751508.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/
Re: Camel lock while multiple routes polling from same file
endpoint
Posted by Jishnu <ji...@wipro.com>.
I couldnt fing find any way to resolve the issue because my component is FTP
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467p5751508.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel lock while multiple routes polling from same file endpoint
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Look at the various read lock options you can use
http://camel.apache.org/file2
On Thu, May 22, 2014 at 1:12 PM, Jishnu <ji...@wipro.com> wrote:
> There exist a scenario where multiple routes are polling from same folder
> .And when a file is locked by one route the other route gives an IOEXception
> and moves on to the next file to poll. Is there any way i could bypass the
> Exception throwing by setting any attribute.
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-lock-while-multiple-routes-polling-from-same-file-endpoint-tp5751467.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/