camel-ftp

Camel-sftp disable host verification globally

北战南征 提交于 2021-01-28 05:05:15
问题 I use Camel DSL route definition: @Component public class UploadRoutesDefinition extends RouteBuilder { ... @Override public void configure() throws Exception { ``` from(String.format("sftp://%s@%s:%d/%s?password=%s&delete=true&readLock=changed&delay=%s" ... When I put file into sftp folder I see following logs: 20/03/2018 14:02:4420.03.18 14:02:44.193 [Camel (My_Service) thread #3 - seda://parsed_csv] INFO o.a.c.c.file.remote.SftpOperations - Known host file not configured, using user known

How to get Camel FTP to fetch only once on demand

女生的网名这么多〃 提交于 2019-12-31 06:00:11
问题 I'm fairly new to Camel. I've been trying to get Camel to fetch a single file via FTP only once, on demand. I couldn't get it to work. Here is what I've tried. Let me know what is the best approach and what is wrong with my code. 1- Send an empty message after the file was read and when the empty message is received, stop the route. from("direct:myStart") .routeId("routeA") .pollEnrich("ftp:...disconnect=true&sendEmptyMessageWhenIdle=true") .choice() .when(body().isNull()).process

How to get Camel FTP to fetch only once on demand

邮差的信 提交于 2019-12-31 06:00:11
问题 I'm fairly new to Camel. I've been trying to get Camel to fetch a single file via FTP only once, on demand. I couldn't get it to work. Here is what I've tried. Let me know what is the best approach and what is wrong with my code. 1- Send an empty message after the file was read and when the empty message is received, stop the route. from("direct:myStart") .routeId("routeA") .pollEnrich("ftp:...disconnect=true&sendEmptyMessageWhenIdle=true") .choice() .when(body().isNull()).process

How to use a dynamic URI in From()

眉间皱痕 提交于 2019-12-29 01:42:10
问题 As mentioned in Apache Camel, it allows to write dynamic URI in To(), does it allows to write dynamic URI in From(). Cause I need to call the multiple FTP locations to download the files on the basis of configuration which I am going to store it in database. (FTPHost, FTPUser, FTPPassword, FTPSourceDir, FTPDestDir) I will read these configuration from the DB and will pass it to the Camel route dynamically at runtime. Example: This is the camel route example that I have to write dynamically

How to get Camel FTP to fetch only once on demand

怎甘沉沦 提交于 2019-12-02 08:58:12
I'm fairly new to Camel. I've been trying to get Camel to fetch a single file via FTP only once, on demand. I couldn't get it to work. Here is what I've tried. Let me know what is the best approach and what is wrong with my code. 1- Send an empty message after the file was read and when the empty message is received, stop the route. from("direct:myStart") .routeId("routeA") .pollEnrich("ftp:...disconnect=true&sendEmptyMessageWhenIdle=true") .choice() .when(body().isNull()).process(RouteStopper("routeA")) .otherwise().to("validator:file.xsd") .to("somewhere") .end(); And my RouteStopper public

How to use a dynamic URI in From()

有些话、适合烂在心里 提交于 2019-11-28 13:47:09
As mentioned in Apache Camel , it allows to write dynamic URI in To(), does it allows to write dynamic URI in From(). Cause I need to call the multiple FTP locations to download the files on the basis of configuration which I am going to store it in database. (FTPHost, FTPUser, FTPPassword, FTPSourceDir, FTPDestDir) I will read these configuration from the DB and will pass it to the Camel route dynamically at runtime. Example: This is the camel route example that I have to write dynamically <Route> <from uri="ftp://${ftpUser}@${ftpHost}:${ftpPort}/${FTPSourceDir}?password=${ftpPassword}&delete