OnException and enrich - fail

2016-06-06 Thread Costash
. I've debug it for a while and still not understanding why is not going throw the aggregation class. On the first call, it pass with success throw "MyAggregationStrategy", but seconds time when it comes from "onExeption" is not. Thanks, Costash -- View this message

Re: Returning response from external webservice using dynamicRouter

2016-05-31 Thread Costash
Hi, I don't know if i get your question correctly, but DynamicRouter acts like a loop: it will send the exchange over and over to the endpoint name returned by the method "route." It will end the loop when the method "route" will returned "null". So your method should returned "null" when you wan

No result from tokenizeXML

2014-09-17 Thread Costash
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 mes

TokenizeXML by value from message header

2014-07-29 Thread Costash
Hi, I'm trying to tokenize (by grouping) a body of a message based on a values from message header. The value from message header differs from one message to another. But it is not working. Is this not supported by camel? or should be done in a specific way? I've tried different ways. ( int grou

Re: Camel testing

2013-07-31 Thread Costash
Thanks a lot! Vlad -- View this message in context: http://camel.465427.n5.nabble.com/Camel-testing-tp5736444p5736579.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: AW: Camel testing

2013-07-30 Thread Costash
Hello, Thanks a lot. I did it. (see below) Now i have another question :) My Endpoints are connecting to the real queue, and send the message there. What if i don't want a real connection to a queue,* can the endpoint be somehow virtualize for unit tests*? Ofcourse i can use active MQ instead o

Camel testing

2013-07-29 Thread Costash
Hi, I've just started to use camel, and I'm trying to understand and create some unit tests, but i don t understand how Mok is working or how unit tests should look like (i've read the tutorials and documentation about camel test). What do i mean by not understanging is: i have a defined route: =