Hi Kalber,

    There is an option called *disconnect* in camel-ftp component

Please refer camel-ftp2 component

http://camel.apache.org/ftp2.html

If you have a consumer which you want to stop, then you need to stop the
consumer/route instead.

You can manually start or stop a route at any time in Java by invoking the
startRoute() and stopRoute() methods on the CamelContext instance. For
example, to start the route having the route ID, nonAuto, invoke the
startRoute() method on the CamelContext instance, context, as follows:

//to start the route
context.startRoute("nonAuto");

//to stop the route
context.stopRoute("nonAuto");

For more Details refer this link
http://fusesource.com/docs/router/2.4/eip/BasicPrinciples-StartupShutdown.html

Cheers!!!
Bharath



--
View this message in context: 
http://camel.465427.n5.nabble.com/Stop-polling-FTP-Component-tp5737925p5737926.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to