Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java
java
   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
java
java

   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

...