camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean Francois LE BESCONT <jflebesc...@gmail.com>
Subject Re: Opposite of split
Date Tue, 05 Mar 2013 08:36:08 GMT
Christian, The stream file mecanism is awsome !
But I have not found how to manage dynamic name with it .... something like
:
  .to("stream:file?fileName=file.csv&encoding=UTF-8")
works  but I would like to do :
  .to("stream:file?fileName=${file:name}&encoding=UTF-8")




2013/3/5 Jean Francois LE BESCONT <jflebescont@gmail.com>

> Thks Ryan your like is very helpfull ! It make the trick.
>
> Thks Christian too, I now have a solution but I while check this code
>
>
>
>
>
>
> 2013/3/5 Christian Müller <christian.mueller@gmail.com>
>
>> Sorry, I mean this one:
>> https://github.com/muellerc/apachecon-na-2013/tree/master/file-component
>>
>> Sent from a mobile device
>> Am 04.03.2013 22:16 schrieb "Christian Müller" <
>> christian.mueller@gmail.com
>> >:
>>
>> > Have a look into this project:
>> > https://github.com/muellerc/apachecon-na-2013/tree/master/jms-component
>> >
>> > Sent from a mobile device
>> > Am 04.03.2013 11:36 schrieb "jeff" <jflebescont@gmail.com>:
>> >
>> >> Thks Claus for the answer, but I have not found the simplest way to do
>> a
>> >> simple:
>> >>
>> >>                 from("file://input")
>> >>                                 .split()
>> >>                                 .tokenize("\n")
>> >>                                 .unmarshal
>> >>                                 .bindy(BindyType.Csv, AED.class)
>> >>                                 .bean(AEDProcessor.class,
>> "processTicket")
>> >>                                 .marshal()
>> >>                                 .bindy(BindyType.Csv, AEDResult.class)
>> >>                                 [?????]
>> >>
>> .to("file://output?fileName=${file:name}")
>> >>
>> >> The only way I found is to do a :
>> >>
>> >> .to("file://output?fileName=${file:name}&fileExist=Append")
>> >>
>> >> But it is too slow !
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://camel.465427.n5.nabble.com/Opposite-of-split-tp5728255p5728481.html
>> >> Sent from the Camel - Users mailing list archive at Nabble.com.
>> >>
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message