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: Trouble with camel splitter
Date Wed, 14 Jan 2009 05:36:31 GMT
Hi

Looks good to me
- Can you see the other header that is added: splitCounter?
- What is the body type?, because Camel invokes size() on the type

You can enable the tracer for trace logs:
http://activemq.apache.org/camel/tracer.html



On Wed, Jan 14, 2009 at 12:16 AM, avermout <avermout@gmail.com> wrote:
>
> I'm using camel 1.4 in Servicemix. I want to make something like that. I want
> to split an XML, and to send the parts to different targets following an
> xpath, and also set properties. All seems to be OK, except I don't the
> splitSize property in any of my targets (TARGET1, TARGET2). I don't see the
> property neither on the message (all inOnly messages), nor on the exchange.
>
> from(JBI1).splitter(xpath).to(JBI2);
> from(JBI2).choice()
>                        .when(xpath1).setHeader(PROPERTY,"25")
>                                .to(TARGET1)
>                        .when(xpath2).setHeader(PROPERTY, "40")
>                                .to(TARGET2)
>                        .otherwise().end();
>
> Does anyone see what I'm doing wrong?
>
> Thanks
>
>
>
> --
> View this message in context: http://www.nabble.com/Trouble-with-camel-splitter-tp21446708s22882p21446708.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/

Mime
View raw message