camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kriti <>
Subject .choice(), .when() not working as expected in the camel route
Date Wed, 11 May 2016 15:44:40 GMT

I have a camel route like this -

public void configure() {

from('mina2:tcp://'+ incomingHL7Listener.getIp() + ':' +
incomingHL7Listener.getPort() +'?codec=#rcmhl7codec')
                                .when(body().isEqualTo("Error decoding

The route is executing the when part i.e from('direct:failure') irrespective
of whether the condition gets satisfied or not. Even if the body is not
equal to 'Error decoding HL7', it is going to the failure part of the route.

I need to get a solution for this as soon as possible. Any suggestions would
be welcome.

Thanks and Regards,

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

View raw message