Hi All,

I have a Route which gets files from FTP and copies to local folder, and
another route which picks up files and do some processing and the routes
stops when files count reaches ftpserver file count and route will be
removed from camelcontext.

All necessary information will be coming from an Object from ActiveMq and
based on info we create new routes everytime and control them appropriately.

Problem, I am facing is, First time I am running, it shows the no of files
correctly, next time , I run the same route , it shows one file less.

My FTP URL :
{0}://{1}@{2}/{3}?password={4}&binary={5}&passiveMode=true&pollStrategy=#optimerPoll&throwExceptionOnConnectFailed=true&maximumReconnectAttempts=0&localWorkDirectory=/tmp&idempotent=true&disconnect=true"

My FILE URL : {0}://{1}?noop=true&autoCreate=false

Routes are :

from (ftpUrl).to(fileUrl).bean(endRoute,"stopFtpRoute");

from(fileUrl).to(mediationProcessor).bean(endRoute,"stopLocalRoute");

in stopXXX(Exchange exhange){

String strRouteID = exchange.getFromRouteId();
....
 camelContext.stopRoute(strRouteID, 1000, TimeUnit.MILLISECONDS);
camelContext.getInflightRepository().removeRoute(strRouteID);
camelContext.removeRoute(strRouteID);

}

I am using disconnect = true in FTP options. Why is it showing me one file
less.

Plz help me.

Thanks
Nafees





--
View this message in context: 
http://camel.465427.n5.nabble.com/FTP-connect-issue-tp5716452.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to