Apache Camel conditional routing
I have a service which has two operations. RegisterUser UpdateUser I have a camel rout: <camel:route id="myRoute"> <camel:from uri="cxf:bean:myListenerEndpoint?dataFormat=POJO&synchronous=true" /> <camel:bean ref="processor" method="processMessage"/> <camel:to uri="xslt:file:resources/service/2.0.0/UserRegistration.xsl"/> <camel:to uri="cxf:bean:myTargetEndpoint"/> </camel:route> In my processor bean, when I specify: RegisterUser registerUser = exchange.getIn().getBody(RegisterUser.class); I get the register user object. Everything works fine. The problem is that I want camel to route my