Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to make Camel not to rollback changes after splitter-component
    text
    copied!<p>I need to parse file by rows. Each row handled separatly, using splitter component. After all rows were processed I need to copy file to done_folder. All works fine if all rows were processed correctly. But if there was incorrect row then I get the following warning about rollback and file do not copy to done_folder Warning:</p> <pre><code>WARN (Camel (com.company.realcardparser) thread #0 - file://project/src/test/resources/working_folder) [GenericFileOnCompletion] Rollback file strategy: org.apache.camel.component.file.strategy.GenericFileDeleteProcessStrategy@41a7d9e7 for file: GenericFile[237file09062012-qa.csv] </code></pre> <p>My camel config:</p> <pre><code> &lt;camelContext id="com.company.realcardparser" xmlns="http://camel.apache.org/schema/spring" trace="true"&gt; &lt;routeContextRef ref="idtProxyRoute"/&gt; &lt;endpoint id="fileParserInputEndPoint" uri="file:${idt.proxy.real.card.parser.folder.test.input}?delete=true&amp;amp;readLock=${idt.proxy.real.card.parser.readLock}&amp;amp;readLockCheckInterval=${idt.proxy.real.card.parser.readLockCheckInterval}&amp;amp;readLockTimeout=${idt.proxy.real.card.parser.readLockTimeout}&amp;amp;delay=${idt.proxy.real.card.parser.delay}"/&gt; &lt;endpoint id="fileParserOutputEndPoint" uri="file:${idt.proxy.real.card.parser.folder.test.output}"/&gt; &lt;endpoint id="fileParserOutputFailedEndPoint" uri="file:${idt.proxy.real.card.parser.folder.test.output.failed}"/&gt; &lt;/camelContext&gt; &lt;bean id="idtTxRequired" class="org.apache.camel.spring.spi.SpringTransactionPolicy"&gt; &lt;property name="transactionManager" ref="transactionManager"/&gt; &lt;property name="propagationBehaviorName" value="PROPAGATION_REQUIRES_NEW"/&gt; &lt;/bean&gt; &lt;routeContext id="idtProxyRoute" xmlns="http://camel.apache.org/schema/spring"&gt; &lt;route id="idtRealCardParserRoute"&gt; &lt;from ref="fileParserInputEndPoint"/&gt; &lt;transacted ref="idtTxRequired"/&gt; &lt;split&gt; &lt;method bean="realCardParser" method="handle"/&gt; &lt;to uri="bean:realCardFinalizer"/&gt; &lt;/split&gt; &lt;to ref="fileParserOutputEndPoint"/&gt; &lt;/route&gt; &lt;/routeContext&gt; </code></pre> <p>How to make camel ignore exceptions? I tried to surround splitter with try/catch block but it didn't help.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload