camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keepcl123 <>
Subject writing a csv file
Date Thu, 26 Dec 2013 19:25:36 GMT

I want to read a csv file from the file directory into a java bean, do some
work on the data (a List) and then save the data to a new csv file.

I mange to do the first part (unmarshal) , but I don't know how to do the
part of writing the file after I finished my work on it (marshal ).
Here is my code , but I get en exception on the marshal part : "can not
convert from a String to a Map"

<bean id="csvReportsHandler" scope="singleton"
class="calypsox.reports.CsvReportsHandler" />
<camelContext xmlns=""
<propertyPlaceholder id="reportsProperty"
location="BLLresources/" />

{{}}&amp;moveFailed={{}}" />
<csv />
<to uri="bean:csvReportsHandler?method=doHandleCsvData" />
<csv />

<to uri="file:{{}}?fileName=teat.csv" />

Can you help ?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message