to make it run in exception you don't even need to run a cycle of with many
messages sent, you just need to define an the interceptor for ftp and http:
interceptSendToEndpoint("(ftp|sftp|ftps|http):.*").process(
new Processor() {
public void process(Exchange exchange) throws Exception {
}
}
);
and send following messages (recipientList)
template.sendBodyAndHeader("direct:start", String.format("Hello Word %1s",
0) , FirstTest.recipientListHeaderName, ftpEp + ","+ httpEp );
template.sendBodyAndHeader("direct:start", String.format("Hello Word %1s",
0) , FirstTest.recipientListHeaderName, httpEp);
(where ftpEp and httpEp are valid endpoints)
--
View this message in context:
http://camel.465427.n5.nabble.com/java-util-concurrent-RejectedExecutionException-using-interceptSendToEndpoint-tp3425179p3709879.html
Sent from the Camel - Users mailing list archive at Nabble.com.