camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PJ Walstroem <walst...@hotmail.com>
Subject Split: how to leave message untouched?
Date Wed, 20 Jun 2012 11:02:12 GMT
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?

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.

Mime
View raw message