org.apache.camel.RecipientList Java Examples

The following examples show how to use org.apache.camel.RecipientList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AnnotatedRecipientList.java    From camelinaction2 with Apache License 2.0 5 votes vote down vote up
@RecipientList
public String[] route(@XPath("/order/@customer") String customer) {
    if (isGoldCustomer(customer)) {
        return new String[] {"jms:accounting", "jms:production"};
    } else {
        return new String[] {"jms:accounting"};
    }
}
 
Example #2
Source File: RecipientListBean.java    From camelinaction with Apache License 2.0 5 votes vote down vote up
@RecipientList
public String[] route(@XPath("/order/@customer") String customer) {
    if (isGoldCustomer(customer)) {
        return new String[] {"jms:accounting", "jms:production"};
    } else {
        return new String[] {"jms:accounting"};
    }
}
 
Example #3
Source File: RecipientListBean.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@RecipientList
public String[] route() {
    return new String[] { "direct:one", "direct:two" };
}