camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fxthomas <felix.tho...@gmail.com>
Subject IdempotentConsumer Query (How does it work)
Date Mon, 18 Jan 2016 09:55:58 GMT
hello,  

    I had read the doc at http://camel.apache.org/idempotent-consumer.html. 
I have a doubt on how it maintains the uniqueness . I checked the code in
DefaultExchange and saw the ExchangeID generated using Instance, Prefix etc.
But I am not sure How it makes the message ID unique and avoid duplicates .  

For example :- 
In my case  I have to read a CSV file and process it. But in case of an
exception or IO error if the route stops and if I restart the route again it
should start from the line in CSV which was not read earlier and not
processed.  The already processed lines should be skipped or ignored since
they will be duplicates . I thought  of using JDBC based IdempotentConsumer
. But I am not sure if it will work fine in this scenario .

Any pointer will be helpful to understand.





--
View this message in context: http://camel.465427.n5.nabble.com/IdempotentConsumer-Query-How-does-it-work-tp5776387.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message