Hello. It seems that conditional skipping when intercepting a message is not
working anymore. My route is this:

                interceptSendToEndpoint("jms:variableQueue")
                .process(new Processor() {
                        
                        @Override
                        public void process(Exchange exchange) throws Exception 
{
                                
                                // Code that puts a property on an echange
                        }
                })
                
.skipSendToOriginalEndpoint().when(constant(false).isEqualTo(true));

This condition is put for testing means to check if the code forwards the
message. The above code should always forward the exchange but actual it
doesn't.

My actual skip condition is this:
              
.skipSendToOriginalEndpoint().when(exchangeProperty("skip").isEqualTo(true));


Can someone confirm this?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Conditional-skipping-when-intercepting-message-tp5765255.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to