camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: marshal to CSV with pipe delimiter
Date Mon, 21 Jun 2010 08:42:36 GMT
On Thu, Jun 17, 2010 at 11:23 AM, Christian Müller
<christian.mueller@gmail.com> wrote:
> Hello Willem,
> thanks for the reply. I'm fine with this. I will not enhance this component,
> unless somebody smarter than me propose otherwise... :-)
>

Yeah bindy is most likely nicer with object mapping. But sometimes you
just need to old school to get a List of rows which has been
separated.
So I think it brings value to offer a option to configure the
separator. So please go ahead Christian.



Well i still think Andys problem should be possible with Camel. He
configures the data format and
> Christian
>
> On Thu, Jun 17, 2010 at 6:46 AM, Willem Jiang <willem.jiang@gmail.com>wrote:
>
>> Hi Christian,
>>
>> It should be easy to add the configure feature into CsvDataFromat.
>> But after checking out the web site of the commons csv, it looks like the
>> commons csv 1.0 is never released since 2008.
>>
>> Maybe we should consider to retire camel-csv and I don't think we need to
>> enhance it as there are some alternatives solution in camel already.
>>
>> Willem
>> Christian Müller wrote:
>>
>>> Hello Claus,
>>>
>>> today I realized, that the org.apache.camel.model.dataformat.CsvDataFormat
>>> doesn't support any attributes or nested elements in the XML DSL. So,
>>> currently the last unit test I provided for camel-csv, is not possible for
>>> the XML DSL. Should we improve camel-csv for this? I'm not sure, because
>>> with camel-bindy and soon also with camel-smooks (I waiting for Tom
>>> Fennellys feedback) we offer two alternatives...
>>>
>>> Regards,
>>> Christian
>>>
>>> On Tue, Jun 15, 2010 at 10:48 PM, Christian Müller <
>>> christian.mueller@gmail.com> wrote:
>>>
>>>  Hello Andy!
>>>>
>>>> I added a unit test for camel-csv which uses a pipe by marshaling the
>>>> object. You will find the test [here|
>>>>
>>>> http://svn.apache.org/viewvc/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat]./csv/CsvMarshalPipeDelimiterTest.java?view=markup<http://svn.apache.org/viewvc/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat%5D./csv/CsvMarshalPipeDelimiterTest.java?view=markup>
>>>> <
>>>> http://svn.apache.org/viewvc/camel/trunk/components/camel-csv/src/test/java/org/apache/camel/dataformat%5D./csv/CsvMarshalPipeDelimiterTest.java?view=markup
>>>> >
>>>>
>>>> I will also add an unit test for the XML DSL, but currently I have some
>>>> problems with it. After that, I will review the wiki and may be I will
>>>> update it.
>>>>
>>>> Hope this helps,
>>>> Christian
>>>>
>>>>
>>>
>>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message