The file should not be moved into the .camel subdirectory if an exception occurs and it's not handled. You can configure to move it into another (sub) directory if you want. Check out: http://camel.apache.org/file2.html -> moveFailed
Best, Christian On Tue, Aug 21, 2012 at 9:54 PM, dmhatre <[email protected]> wrote: > Hi Folks, > > Need help with this issue. > Is it possible for file component to NOT to move the file to .camel > directory if there is error in the following endpoint of that route. Ex: if > error in processor "corpActionProcessor" can we AVOID moving the file > from c://cameldata/corpactions to c://cameldata/corpactions/.camel > > Thanks in advance, > Darpan Mhatre. > > Route as below > > <route id="Corporate-Actions"> > <from uri="file:c://cameldata/corpactions"/> > <unmarshal ref="corpActionDataFormat"/> > <process ref="corpActionProcessor"/> > <convertBodyTo type="com.testing.eai.model.CorpActionModel"/> > <to uri="bean:corpActionSql?method=processCorpAction"/> > </route> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Is-it-possible-for-file-component-to-NOT-to-move-the-file-to-camel-directory-if-there-is-error-in-th-tp5717797.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --
