Hi You need to set shareUnitOfWork=true. See details at http://camel.apache.org/splitter
On Mon, Oct 28, 2013 at 7:11 AM, talk2patel86 <talk2pate...@gmail.com> wrote: > Hi There, > I have camel route configured as below: > > <route id="text-file-route"> > <from > > uri="file:files/merchant?antInclude={{include-file-type}}&initialDelay=1000&delay=1000&move=${file:name.noext}.processed" > /> > <split streaming="true"> > <tokenize token="\n" /> > <process ref="splitBatchAdapterProcessor" /> > <process ref="merchantStreamProcessor" /> > <process ref="merchantTableProcessor" /> > <to uri="mock:dummy" /> > </split> > </route> > > With current configuration the file gets renamed even if an exception is > thrown while processing the file. > What i want is, the file should only be rename if no exception is thrown > while the file. > > I an using camel 2.12. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-File-component-should-not-rename-file-when-an-exception-is-thrown-tp5742284.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen