spring-integration-dsl

Dynamic TCP Server with Spring Integration using Java DSL

偶尔善良 提交于 2019-12-05 14:25:59
I am trying to create a TCP server and client by reading the property files which contains the detail of the connections. I am using Dynamic and runtime Integration Flows with the help of following reference document ( 9.20 Dynamic and runtime Integration Flows) The code is working fine while creating the client but when I am creating the server using the same with changes in the code as follow: IntegrationFlow flow = f -> f .handle(Tcp.inboundAdapter(Tcp.netServer(2221) .serializer(TcpCodecs.crlf()) .deserializer(TcpCodecs.lengthHeader1()) .id("server"))) .transform(Transformers

RequestHandlerRetryAdvice cannot be made to work with Ftp.outboundGateway in Spring Integration

只谈情不闲聊 提交于 2019-12-02 11:42:13
问题 My situation is similar to the one described in this SO question. The difference being that I don't use a WebFlux.outboundGateway but an Ftp.outboundGateway on which I call an AbstractRemoteFileOutboundGateway.Command.GET command, the common problem being that I can't get the defined RequestHandlerRetryAdvice to be used. The configuration looks like this (stripped down to the relevant parts): @RestController @RequestMapping( value = "/somepath" ) public class DownloadController { private

RequestHandlerRetryAdvice cannot be made to work with Ftp.outboundGateway in Spring Integration

半世苍凉 提交于 2019-12-02 06:38:02
My situation is similar to the one described in this SO question . The difference being that I don't use a WebFlux.outboundGateway but an Ftp.outboundGateway on which I call an AbstractRemoteFileOutboundGateway.Command.GET command, the common problem being that I can't get the defined RequestHandlerRetryAdvice to be used. The configuration looks like this (stripped down to the relevant parts): @RestController @RequestMapping( value = "/somepath" ) public class DownloadController { private DownloadGateway downloadGateway; public DownloadController( DownloadGateway downloadGateway ) { this

How to retry a failed call to a Webflux.outboundgateway in Spring integration

和自甴很熟 提交于 2019-12-02 02:43:26
问题 I have a spring integration flow defined in the flow DSL syntax. One of my handlers is a Webflux.outboundGateway. When the remote URI is not accessible, an exception is thrown and sent to the "errorChannel". I'm trying to have the flow to retry, but so far with no success (the call is never retried). Here is what my configuration looks like: @Bean public IntegrationFlow retriableFlow() { return IntegrationFlows .from(...) .handle( WebFlux.outboundGateway(m -> UriComponentsBuilder

How to implement simple echo socket service in Spring Integration DSL

橙三吉。 提交于 2019-11-29 18:09:56
Please, could you help with implementation of a simple, echo style, Heartbeat TCP socket service in Spring Integration DSL? More precisely how to plug Adapter/Handler/Gateway to IntegrationFlows on the client and server side. Practical examples are hard to come by for Spring Integration DSL and TCP/IP client/server communication. I think, I nailed most of the code, it's just that bit about plugging everything together in the IntegrationFlow . There is an sample echo service in SI examples, but it's written in the "old" XML configuration and I really struggle to transform it to the

How to implement simple echo socket service in Spring Integration DSL

你。 提交于 2019-11-28 12:17:45
问题 Please, could you help with implementation of a simple, echo style, Heartbeat TCP socket service in Spring Integration DSL? More precisely how to plug Adapter/Handler/Gateway to IntegrationFlows on the client and server side. Practical examples are hard to come by for Spring Integration DSL and TCP/IP client/server communication. I think, I nailed most of the code, it's just that bit about plugging everything together in the IntegrationFlow . There is an sample echo service in SI examples,