I followed an example from a book Camel in action. how to marchal and
unmarchal a csv data format. However, I want to unmarchal a csv files with
(comma seperated delimiter) and split body. Then, I will use content based
.choice to distribute messages according to required tasks. 
In fact, The first and simple example didn't  work to me. I used camel
2.15.6 (camel-core, camel-context, camel-csv, commons-csv) and  java 7. 
public void configure()
             {
                  CsvDataFormat csv = new CsvDataFormat();
                  csv.setDelimiter(",");
                   
                  from("file:test?noop=true")
                 .unmarshal().csv()
                  .split(body())
                  .to("file:out");
             } 
Please find below the stack trace.  
<http://camel.465427.n5.nabble.com/file/n5802566/errorstack.png> 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Parsing-csv-data-format-tp5802566.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to