camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brenuart <bertrand.renu...@itma.lu>
Subject Re: How to write a type converter?
Date Tue, 15 Oct 2013 21:41:31 GMT
Just my two cents (quite new to Camel), but why don't use a Splitter to split
the List into its individual items?
Example:

  from("file:src/data?noop=true")  	
     .convertBodyTo(ItemDocuments.class)       
     .split().body()    
     .to("jpa:org.apache.camel.example.etl.ItemEntity"); 





--
View this message in context: http://camel.465427.n5.nabble.com/How-to-write-a-type-converter-tp5741592p5741623.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message