Yep, doHandleCsvData(@Body List<List<String>> csvData, @Header("CamelFileName") String fileName) should be about right. The rest of the route also looks good. But why ask if the syntax is right, just try it :)
On Sat, Dec 28, 2013 at 9:37 PM, keepcl123 <keepcl...@gmail.com> wrote: > Hi, > > my doHandleCsvData signiture is : > > doHandleCsvData(List<List<String>> csvData) > > so you are saying I have to so this : > > doHandleCsvData(@Body List<List<String>> csvData, > @Header("CamelFileName") String > fileName) > > ? > > And another question : > how do I write the exchange beck to a csv file ? > > Is this the right syntax: > > <route> > > <from > uri="file://somefile" /> > <unmarshal> > <csv /> > </unmarshal> > <to > uri="bean:csvReportsHandler?method=doHandleCsvData" /> > <marshal> > <csv /> > </marshal> > <to uri="file://fileName=teat.csv" /> > </route> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-Poller-of-CSV-tp5745296p5745305.html > Sent from the Camel - Users mailing list archive at Nabble.com. >