Versions Compared

Key

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

...

As of Camel 2.4.0 we now support the use of @RoutingSlip on a bean method to easily create a dynamic Routing Slip using a Java method.

Simple Example using @Consume and @RoutingSlip

Code Block
java
java
package com.acme.foo;

public class RouterBean {

    @Consume(uri = "activemq:foo")
    @RoutingSlip
    public String[] route(String body) {
        return new String[]{"activemq:bar", "activemq:whatnot"};
    }
}

...