THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
private MyBean my; from("activemq:topic:OrdersTopic"). filter().expression(bean(my, "isGoldCustomer")). to("activemq:BigSpendersQueue"); |
Which also can be done in a bit shorter and nice way:
Code Block | ||||
---|---|---|---|---|
| ||||
private MyBean my;
from("activemq:topic:OrdersTopic").
filter().method(my, "isGoldCustomer").
to("activemq:BigSpendersQueue");
|
Other examples
We have some test cases you can look at if it'll help
...