On Wed, Jun 20, 2012 at 1:02 PM, PJ Walstroem <walst...@hotmail.com> wrote:
> hello,
> I split messages using
>
> from(incomingQueue)
> .startupOrder(1)
> *.split().tokenizeXML("update", "dbStream")*
> .convertBodyTo(Document.class)
> .choice()
> .when().xpath(SUBSCRIPTION_XPATH)
> .to(AGGREGATE_MESSAGES)
> .otherwise()
> .to(PRODUCERS)
> .end();
>
> however, when the XML does not contain neither <update> nor <dbStream>, the
> routing just seems to stop. Is there a way to let messages through that are
> not applied by the split?
>

You can use the filter EIP to filter out message that are not <update>
XML messages.
The tokenizeXML requires the message structure to be XML and have a
root tag named <update> which contains a list of child tags named
<dbStream>.

> According to  http://camel.apache.org/splitter.html
> http://camel.apache.org/splitter.html , "The Splitter will by default return
> the original input message", but I can not see that happen in this case.
>
> Using Camel 2.9.2
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Split-how-to-leave-message-untouched-tp5714734.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to