camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Bourke <>
Subject marshal to CSV with pipe delimiter
Date Thu, 10 Jun 2010 12:09:53 GMT

I have successfully configured my spring XML to unmarshal a file delimited by
pipe symbols using the following:

    <csv id="usePipeCsv"/>

with the readPipeCsv bean configured as:

    <bean name="usePipeCsv"
        <property name="strategy.delimiter" value="|"/>

However, the same technique does not work when trying to marshal the CSV
data, i.e. the output has comma delimited values instead of being pipe

    <csv id="usePipeCsv"/>

So I tried to set the delimiter in the CSVConfig using the following config:

                <csv id="writePipeCsv"/>

    <bean name="writePipeCsv"
        <property name="config">
            <bean class="org.apache.commons.csv.writer.CSVConfig">
                <property name="delimiter" value="|"/>

Although this works from a compile and run point of view, the output is
delimited by comma instead of pipe.

I'm obviously doing something wrong - can you point me in the right
direction please?

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

View raw message