How do I add options to the default Idempotent File Repository using the
Spring DSL?

Basically I want to change the "eager" option to false because it seems like
it will fix my issue of not inserting a name into the Repo if I set
Exchange.ROUTE_STOP = true. 

But it seems the only way is to have a messy block of code like: 

<bean id="myFileStore"
class="org.apache.camel.processor.idempotent.FileIdempotentRepository">
           <property name="fileStore" value="myFileStore.txt"/>
           <property name="maxFileStoreSize" value="512000000"/>
           <property name="cacheSize" value="100000"/>
</bean>

<camelContext> 
    .
    .
    .
    <route>
        <from uri="x" />
        <idempotentConsumer messageIdRepositoryRef="myFileStore"
eager="false">
            <header>${file:name}-${file:modified}</header>
            <to uri="y" />
        </idempotentConsumer>
    </route>
</camelContext>


Right?  That's the only way to manipulate the default options for the File
Idempotent Consumer?  Or am I missing something here?  




--
View this message in context: 
http://camel.465427.n5.nabble.com/Adding-options-to-default-idempotent-File-Repo-tp5786675.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to