That was in fact the first thing that I tried. But it did not help - the
end() method returns a generic ProcessorDefinition type, so there is still
no chance to invoke ChoiceDefinition-specific methods such as when() or
otherwise() on it.

Maybe casting the result to ChoiceDefinition will help? But it would be a
really ugly solution.


Claus Ibsen-2 wrote:
> 
> I recon you can try adding an end() after recipientList to get back the
> Type.
> 
> Java generics is not really that well for doing DSL like language.
> 

-- 
View this message in context: 
http://old.nabble.com/RecipientList-%2B-Choice-no-longer-work-together-in-Camel-2.2.0--tp27983922p27984050.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to