camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.Ismail" <>
Subject writing a choice() predicate
Date Tue, 24 Aug 2010 12:37:27 GMT


I'm using Camel 2.3 using java DSL to with a route like that:

    	.log("request's Body is ${in.body}")
    			.process(new EmLoginProcessor())
    			.process(new EmProcessor())
    			.log("Response back to the caller ${body}")
.choice().when(property("MarshalAndUnmarshal").isEqualTo(constant(true))) //
gives me a compilation error
    		.process(new ExceptionProcessorHandler())


I get the following compilation error if I put a choice() inside the doTry.
Here it is "The method doCatch(Class<ECIEPermissionDenied>,
Class<ECIESystemDown>) is undefined for the type ProcessorDefinition"

So I tried to put it as a separate Predicate like that:

Predicate pred =

However, I get this compilation error : "The method choice() is undefined
for the type MyRouteBuilder"

Is there a way to successfully write this Predicate?

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

View raw message