Hello,

I am using camel version 2.9.2 . Can anyone help me to know that, How to
restrict duplicate files adding into idempotent repository irrespective of
cache size , means  any number of files in source directory but no files
should be added twice to the repository .

<bean id="fileStore"
                
class="org.apache.camel.processor.idempotent.FileIdempotentRepository">         
                <property name="fileStore" 
value="D:/filestore/eclFileStore.dat" />

                <property name="cacheSize" value="5000" />
         </bean>
====================================================================
<route id="ResFiles">
                        <from
uri="ftp://user@***.**.**.*:**/xyz?filter=#ResFilter&amp;readLock=changed&amp;idempotent=true&amp;idempotentRepository=#fileStore&amp;delay=2000&amp;readLockCheckInterval=1000&amp;localWorkDirectory=C:/temp&amp;passiveMode=true&amp;disconnect=true&amp;password=****";
/>
                        <to uri="file:\\*****" />
        </route>


In the above scenario I am only able to restrict the number of entries
depending on cacheSize value but not above it . Kindly help .



--
View this message in context: 
http://camel.465427.n5.nabble.com/Restricting-the-duplicate-files-to-be-added-into-idempotent-repository-irrespective-of-cacheSize-vale-tp5750853.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to