You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

@RecipientList Annotation

As of 1.5.0 we now support the use of @RecipientList on a bean method to easily create a dynamic Recipient List using a Java method.

public class RouterBean {

    @MessageDriven(uri = "activemq:foo")
    @RecipientList
    public String[] route(String body) {
        return new String[]{"activemq:bar", "activemq:whatnot"};
    }
}
  • No labels