Re: bind programmatically

2013-05-14 Thread Jean Francois LE BESCONT
Thanks ( like always :) Claus ! It is right that it is a little bit unusual, I have to modify a CSV and add one new field which is the original field. the code is : from("file://C:/Temp/camel/rep1/?noop=true") .split().tokenize("\n") .streaming() .unmarshal() .bindy(BindyType.Csv, Ti

Re: bind programmatically

2013-05-14 Thread Claus Ibsen
>From your processor you can just create the bindy data format and invoke the marshal method. eg add camel-bindy to your class path, and find the BindyDataFormat class and create a new instance, configure it, and invoke the marshal method manually. Its a bit unusual to do it like that, but you ca

bind programmatically

2013-05-14 Thread Jean Francois LE BESCONT
Hey ! I would like to programmatically marshal and bind my body to do : from("file://C:/Temp/camel/rep1/?noop=true") .split().tokenize("\n") .unmarshal() .bindy(BindyType.Csv, Ticket.class) .process(new Processor() { public void process(Exchange exchange) throws Exception {