It should work : ) let us know if you get around to creating a test
case and we can add to the distro

2008/8/20 David Siefert <[EMAIL PROTECTED]>:
> I would like to do something similar, but I would like to accomplish this
> using XML.  Based on another message related to splitting a message, James
> mentioned the use of Bean Integration.  Looking in the XML schema for 1.4.0
> I also found splitter had support for expressionNode type which allows you
> to use XPath, a method call (related to bean integration), el, javascript,
> and simple.  So I am trying to put 2+2 together to come up with a solution.
> I'm thinking something like:
>
> <route>
>  <from uri="direct:incoming" />
>  <splitter>
>    <simple>body</simple>
>    <to uri="direct:outgoing" />
>  </splitter>
> </route>
> So it will take a message, split on the body (which is already
> Iterable--since it will receive an ArrayList), and send each part to the
> next processor.  Has anybody already done this--or know if it works?  I'll
> post a test if I can get a chance to take a stab at this tommorow...
>
> -David
> On Fri, Jul 18, 2008 at 9:45 AM, cmoulliard <[EMAIL PROTECTED]> wrote:
>
>>
>> Apparently, using this
>>
>> .splitter(body))
>>
>> will split extract each Product object from the Product ArrayList.
>>
>>
>> cmoulliard wrote:
>> >
>> > Hi,
>> >
>> > I would like to know how I can split the content of "Products" ArrayList
>> > into different messages (one by Product class by example) using splitter
>> ?
>> >
>> > .splitter(body() ......
>> >
>> > Regards,
>> >
>> > Charles Moulliard
>> >
>> >
>> >
>>
>>
>> -----
>> Enterprise Architect
>>
>> Xpectis
>> 12, route d'Esch
>> L-1470 Luxembourg
>>
>> Phone +352 25 10 70 470
>> Mobile +352 621 45 36 22
>>
>> e-mail : [EMAIL PROTECTED]
>> web site : www.xpectis.com
>> --
>> View this message in context:
>> http://www.nabble.com/How-can-I-split-a-ArrayList-object-using-.splitter%28body%28%29%29---tp18524380s22882p18530894.html
>>  Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to