camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Costash <>
Subject No result from tokenizeXML
Date Wed, 17 Sep 2014 15:39:45 GMT

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

I have:

          .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",

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

Thanks in advance!

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message