Use the "onException" definiton to catch the error, transform/marshal you
bean as you need and use the file component to create the file.

Sent from a mobile device
Am 06.11.2012 17:40 schrieb "maheshadepu" <maheshad...@gmail.com>:

>
> I have the following requirement.
>
> On error of a camel route I want to write list of beans datat to flat file.
> Those beanse werere populated while processing
> (let say it could be result set or entity bean) .
>
>
> I am looking some thing like if i tell camel the definition of (mapping of
> a) bean or result set
> and then it should write to flat file automatically using file component?
> Is that possible?
> Please point me to the examples or documentation.
>
> Thanks,
> Mahesh
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/bean-to-file-tp5722243.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to