spring-integration

Runtime configurable dynamic routing in spring integration

馋奶兔 提交于 2021-01-24 04:51:27
问题 I want to build a scheme with several outbound gateways, that could be added in runtime (lets say it starts with 2 gateways but have ability to add 3rd-4th in runtime). I want to have http-outbound-gateways for their functionality but wanna build their instances in runtime. The problem is in registering channels subscribed to these gateways in spring context. Atm I have 3 desicions and cant choose right one. Register newely created channels to application context with registerBeanDefinition("

Runtime configurable dynamic routing in spring integration

早过忘川 提交于 2021-01-24 04:50:04
问题 I want to build a scheme with several outbound gateways, that could be added in runtime (lets say it starts with 2 gateways but have ability to add 3rd-4th in runtime). I want to have http-outbound-gateways for their functionality but wanna build their instances in runtime. The problem is in registering channels subscribed to these gateways in spring context. Atm I have 3 desicions and cant choose right one. Register newely created channels to application context with registerBeanDefinition("

Runtime configurable dynamic routing in spring integration

☆樱花仙子☆ 提交于 2021-01-24 04:48:55
问题 I want to build a scheme with several outbound gateways, that could be added in runtime (lets say it starts with 2 gateways but have ability to add 3rd-4th in runtime). I want to have http-outbound-gateways for their functionality but wanna build their instances in runtime. The problem is in registering channels subscribed to these gateways in spring context. Atm I have 3 desicions and cant choose right one. Register newely created channels to application context with registerBeanDefinition("

Runtime configurable dynamic routing in spring integration

余生长醉 提交于 2021-01-24 04:48:14
问题 I want to build a scheme with several outbound gateways, that could be added in runtime (lets say it starts with 2 gateways but have ability to add 3rd-4th in runtime). I want to have http-outbound-gateways for their functionality but wanna build their instances in runtime. The problem is in registering channels subscribed to these gateways in spring context. Atm I have 3 desicions and cant choose right one. Register newely created channels to application context with registerBeanDefinition("

Cannot convert String value to Expression for ExpressionEvaluatingRequestHandlerAdvice in spring-integration 4.1.x

我怕爱的太早我们不能终老 提交于 2021-01-04 05:26:40
问题 I am unable to get the ExpressionEvaluatingRequestHandlerAdvice class to work in Spring Integration 4.1.x. The following expression advice context XML snippet produces a conversion error stating that Spring cannot convert the property onSuccessExpression to an Expression from a String. Prior to Spring Integration 4.1.0-RELEASE the setOnSuccessExpression() method only accepted Strings, now it is overloaded to accept a String or Expression. <sftp:outbound-channel-adapter channel=

Spring integration TCP/IP close connection problem

徘徊边缘 提交于 2021-01-01 09:56:14
问题 I use spring integration as a Full Duplex communication system's gateway module. that flow is client app <--> spring-integration-ip-module (siid) <--> server app The problem is when client app closed, ssid can't closed connection with server app side? here is my code // siid connet to client @Bean public TcpNetServerConnectionFactory server(){ TcpNetServerConnectionFactory server=new TcpNetServerConnectionFactory(1234); server.setMapper(new TcpSerMapper()); // use 'mapper' attribute in XML

Spring Integration IMAP : Failed to read attachment from mail due to virus scanning in Outlook 365

不打扰是莪最后的温柔 提交于 2020-12-06 20:28:57
问题 I am using Spring Integration to read email from Outlook 365 (cloud) using IMAP inbound-channel-adapter . Scenario: Target mailbox in Outlook 365 is doing virus scanning for new emails once arrived, during this scan outlook is detaching the attachment and attaching it again once virus scan is completed. Problem: Attachment is missing in very few cases (1 mail out of 50 approx), this is because of those emails are read by inbound-channel-adapter when the attachment is not available in outlook

Spring Integration IMAP : Failed to read attachment from mail due to virus scanning in Outlook 365

夙愿已清 提交于 2020-12-06 20:27:31
问题 I am using Spring Integration to read email from Outlook 365 (cloud) using IMAP inbound-channel-adapter . Scenario: Target mailbox in Outlook 365 is doing virus scanning for new emails once arrived, during this scan outlook is detaching the attachment and attaching it again once virus scan is completed. Problem: Attachment is missing in very few cases (1 mail out of 50 approx), this is because of those emails are read by inbound-channel-adapter when the attachment is not available in outlook

Spring retry find the last retry

六月ゝ 毕业季﹏ 提交于 2020-12-01 14:56:34
问题 I am using Spring-retry-1.2.0, Retry is working fine, but in my method i want to find it out whether the retrial is the last retrial or not, Is there any method available to get the retrialCount or last retrial in spring-retry? Retrial.java public class Offers extends SimpleRetryPolicy { @Async @Retryable(maxAttemptsExpression = "#{retrial.times}", backoff = @Backoff(delayExpression = "#{retrial.delay}")) public void handleOfferes(Data data) { AlwaysRetryPolicy policy = new AlwaysRetryPolicy(

Spring retry find the last retry

亡梦爱人 提交于 2020-12-01 14:55:53
问题 I am using Spring-retry-1.2.0, Retry is working fine, but in my method i want to find it out whether the retrial is the last retrial or not, Is there any method available to get the retrialCount or last retrial in spring-retry? Retrial.java public class Offers extends SimpleRetryPolicy { @Async @Retryable(maxAttemptsExpression = "#{retrial.times}", backoff = @Backoff(delayExpression = "#{retrial.delay}")) public void handleOfferes(Data data) { AlwaysRetryPolicy policy = new AlwaysRetryPolicy(