Hi, 

I use Camel 1.6.1. I have camel context with two beans: bean1 and bean2. I
try to define camel route following

1. from("timer:test?period=10000").
2.     choice().
3.         when(header("test_header").isNotNull()) .
4.             to("bean:bean1").
5.         otherwise().
6.             to("bean:bean2");

But I came across problem with this definition. I cannot call otherwise()
method (line 5) because this method is undefined for the type ProcessorType.
So, my code doesn't works.

In tutorial I found example like this:

from("queue:c").choice()
    .when(header("foo").isEqualTo("bar")).to("queue:d")
    .when(header("foo").isEqualTo("cheese")).to("queue:e")
    .otherwise().to("queue:f");

Where is the problem?

Thanks,
Marcin
-- 
View this message in context: 
http://old.nabble.com/problem-with-definition-camel-routing-tp26371518p26371518.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to