BeanIO has worked pretty well for me. It's easy to take a (List of) pojo(s) and dump it to a file. You need to set up the mapping in a config file, then just do a marshal.
http://camel.apache.org/beanio.html maheshadepu wrote > 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-tp5722243p5722251.html Sent from the Camel - Users mailing list archive at Nabble.com.