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: JavaBean as Splitter
Date Mon, 16 Feb 2009 10:40:38 GMT
Hi

I created a sample at the wiki page:
http://cwiki.apache.org/confluence/display/CAMEL/Splitter

On Mon, Feb 16, 2009 at 11:23 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> Hi
>
>
> On Mon, Feb 16, 2009 at 11:11 AM, pevgen <pevgen@km.ru> wrote:
>>
>> Hello.
>> How can I write a class-spliiter ? and how can i use this class in my spring
>> config ?
>> I use camel 1.5 (because it's stable release).
> Just create a POJO that has a method that returns something the can be
> iterateable, eg. return each splitted part.
> Eg a List, Iterator
>
> And then you can use the methodCall expression to configure the
> splitter to know that it should call a method on your POJO
>
> You POJO can be defined in spring XML in plain spring bean style.
>
>
> Behind the covers the splitter expects an Expression that it evaluated
> to get the "something that can be iteratable"
>
> I guess we could use a sample of that on the wiki page:
> http://camel.apache.org/splitter.html
>
>
>>
>> Thanks
>> Evgeny
>> --
>> View this message in context: http://www.nabble.com/JavaBean-as-Splitter-tp22034573s22882p22034573.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Mime
View raw message