Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: CAMEL-1618

...

Camel can instantiate the bean and invoke the method if given a class or invoke an already existing instance. This is illustrated from the example below:
NOTE This bean DSL is supported since Camel 2.0-M2

Code Block
java
java
        from("activemq:topic:OrdersTopic").
                filter().expression(bean(MyBean.class, "isGoldCustomer")).
                to("activemq:BigSpendersQueue");

...