camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Polling consumer thread stopping automatically
Date Tue, 10 Dec 2013 11:56:46 GMT
I am having a scenario where I am using consumer template to receive file
from a endpoint. The Endpoint could be either File System or FTP site.
Currently I am using only File System with following endpoint URL.


On every hit to following code.

Exchange exchange = consumerTemplate.receive(endPointURI, timeout);
if (exchange != null) {
	String body = exchange.getIn().getBody(String.class);
	return body;

It creating a new Camel context thread and after some hits it giving error

java.util.concurrent.RejectedExecutionException: PollingConsumer on
Endpoint[file://D:/metamodel/Seach.json?noop=true&idempotent=false] is not
started, but in state:Stopped

I am not sure why this is happening and its sporadic in nature.
Any suggestion on this would do great help.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message