Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

No result from tokenizeXML

$
0
0
Hi,

How can i stop/throw exception if tokenizer won't find the token? Actually
it will result with 0 messages , processing stop, and vanish the input
message.

I have:

/from(input)
.split().tokenizeXML( "order", 100).to(commonOut);

from(commonOut)......etc. /

If a message comes and do not contains the element "order" it won't throw
any exception and my input message is vanished.

My idea was to use :

/ .split().tokenizeXML( "order",
100).*stopOnException()*.to(commonOut);/

but don't know how to make the tokenizer to throw exeption of tag "order"
couldn t be found.

Thanks in advance!

Viewing all articles
Browse latest Browse all 5648

Trending Articles