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
>

Yes if an exception is thrown, and you do not have any error handler
configured that handle the exception, then the message would be
regarded as failed, and the file consumer, will leave the file
untouched. Notice that the file consumer will then pickup the same
file again on next poll.




> 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.



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to