camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Crivellaro <mcr...@optasportsdata.com>
Subject Re: java.util.concurrent.RejectedExecutionException using interceptSendToEndpoint
Date Tue, 15 Mar 2011 16:48:33 GMT
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.

Mime
View raw message