use of org.apache.camel.processor.aggregate.UseLatestAggregationStrategy in project camel by apache.
the class AggregatorExceptionTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() throws Exception {
final String exceptionString = "This is an Error not an Exception";
errorHandler(deadLetterChannel("mock:error"));
from("direct:start").aggregate(header("id"), new UseLatestAggregationStrategy()).completionSize(5).process(new Processor() {
public void process(Exchange exchange) throws Exception {
throw new java.lang.NoSuchMethodError(exceptionString);
}
});
}
};
}
use of org.apache.camel.processor.aggregate.UseLatestAggregationStrategy in project camel by apache.
the class EnricherRefTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("cool", cool);
jndi.bind("agg", new UseLatestAggregationStrategy());
return jndi;
}
use of org.apache.camel.processor.aggregate.UseLatestAggregationStrategy in project camel by apache.
the class PollEnricherRefTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("cool", cool);
jndi.bind("agg", new UseLatestAggregationStrategy());
return jndi;
}
Aggregations