spring-camel

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

Apache Camel: How to pass values from configure method to from() & to() components? — [RESOLVED]

谁都会走 提交于 2020-12-15 00:50:58
问题 I have a scenario where I have to read a file from the location on certain interval, extract the file name & file path, hit 2 rest services which is a Get & Post call using those inputs & place the file in appropriate location. I have managed a pseudo code as follows. Wanted to know if there's a better way of achieving this using Camel. Appreciate your help! The flow is - Extract the fileName Hit a Get endpoint ('getAPIDetails') using that fileName as an input to check if that fileName exists

Apache Camel: How to pass values from configure method to from() & to() components? — [RESOLVED]

自古美人都是妖i 提交于 2020-12-15 00:50:34
问题 I have a scenario where I have to read a file from the location on certain interval, extract the file name & file path, hit 2 rest services which is a Get & Post call using those inputs & place the file in appropriate location. I have managed a pseudo code as follows. Wanted to know if there's a better way of achieving this using Camel. Appreciate your help! The flow is - Extract the fileName Hit a Get endpoint ('getAPIDetails') using that fileName as an input to check if that fileName exists

Apache Camel: How to pass values from configure method to from() & to() components? — [RESOLVED]

本秂侑毒 提交于 2020-12-15 00:47:12
问题 I have a scenario where I have to read a file from the location on certain interval, extract the file name & file path, hit 2 rest services which is a Get & Post call using those inputs & place the file in appropriate location. I have managed a pseudo code as follows. Wanted to know if there's a better way of achieving this using Camel. Appreciate your help! The flow is - Extract the fileName Hit a Get endpoint ('getAPIDetails') using that fileName as an input to check if that fileName exists

Asynchronous Camel Component - doStop() called immediately

孤街浪徒 提交于 2020-11-28 02:22:58
问题 I am trying to create a camel component which consumes an API from an external service. My Route is as follows from("myComponent:entity?from=&to=") .to("seda:one") from("seda:one") .aggregate(constant(true), new GroupedBodyAggregationStrategy()) .completionSize(5) .completionTimeout(5000) .process( new Processor1() ) to("seda:two") . . . from("seda:five") .to("myComponent2:entity") I implemented my component consumer as follows public class MyComponentConsumer extends DefaultConsumer { public

Asynchronous Camel Component - doStop() called immediately

陌路散爱 提交于 2020-11-28 02:20:11
问题 I am trying to create a camel component which consumes an API from an external service. My Route is as follows from("myComponent:entity?from=&to=") .to("seda:one") from("seda:one") .aggregate(constant(true), new GroupedBodyAggregationStrategy()) .completionSize(5) .completionTimeout(5000) .process( new Processor1() ) to("seda:two") . . . from("seda:five") .to("myComponent2:entity") I implemented my component consumer as follows public class MyComponentConsumer extends DefaultConsumer { public

Asynchronous Camel Component - doStop() called immediately

故事扮演 提交于 2020-11-28 02:18:41
问题 I am trying to create a camel component which consumes an API from an external service. My Route is as follows from("myComponent:entity?from=&to=") .to("seda:one") from("seda:one") .aggregate(constant(true), new GroupedBodyAggregationStrategy()) .completionSize(5) .completionTimeout(5000) .process( new Processor1() ) to("seda:two") . . . from("seda:five") .to("myComponent2:entity") I implemented my component consumer as follows public class MyComponentConsumer extends DefaultConsumer { public