camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph E. Kampf Jr." <joseph.ka...@gmail.com>
Subject Re: Skip duplicate for idempotent file2 component
Date Sat, 08 Oct 2016 16:45:38 GMT
The idempotent repository can be a database table. You define a key for the message and that
prevents the file from being consumed on multiple nodes. You should still move the file out
of the directory when you are done processing. 

Thanks,

Joe

> On Oct 7, 2016, at 10:19 AM, sian <sianfwebster@gmail.com> wrote:
> 
> I am using camel over a clustered environment and want to use a readlock on
> my file consumer endpoint. The only cluster safe readlock is the idempotent
> readlock however this requires an idempotentRepository to be set on the file
> uri.
> 
> I use an idempotent consumer within the route which moves any duplicate
> files to an error folder and logs the error to a specific file.
> 
> Is there a way to use this idempotent consumer with the idempotent readlock?
> Or a way to set the idempotentRepository in the file component to not skip
> the duplicates so they are picked up by the idempotent consumer in the route
> instead?
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Skip-duplicate-for-idempotent-file2-component-tp5788485.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message