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 {
         Ticket ticket = (Ticket) exchange.getIn().getBody() ;

         // Convert from ticket to CSV which is @CsvRecord
         <String or byte[]> ticketInCSVOrignal =???  ( ticket )
         ticket.originalVersion =  ticketInCSVOrignal

 // modify ticket start here
      }
   })
   [...]


Something that will do the equivalent of  :

.marshal()
.bindy(BindyType.Csv, Ticket.class)



I have look typeConverter and dataformat, but I am a little bit lost

Any idea ?

Thanks !

Jeff

Reply via email to