Questions tagged [spring-integration-dsl]

861 questions
2
votes
1 answer

Mid-flow file sourcing with Spring Integration DSL

I'm in the need to create a flow that, whenever a file is received at a folder, it picks up some other pre-existing files from a different folder, transforms all of them (including the newly received) using the same transformer and then aggregates…
gnzlrm
  • 190
  • 1
  • 12
2
votes
1 answer

Spring integration TCP client throwing 'Socket closed during message assembly' exception

In Kotlin/Java, When I try to send a bytearray message to a TCP server and receive the message, I am getting the exception org.springframework.messaging.MessagingException: Exception while awaiting reply; nested exception is java.io.IOException:…
Prasad
  • 368
  • 1
  • 6
  • 16
2
votes
0 answers

How to configure Redis inbound channel adaptor in Spring integration DSL?

I am trying to set up a caching service using Spring boot/integration. This service has to retrieve data from Redis database every 6 minutes. I have followed this documentation and there is no example for Spring integration DSL.…
2
votes
2 answers

Rename the file after streaming the data from remote directory

I am reading the file using below command .handle(Sftp.outboundGateway(sftpSessionFactory(), GET,"payload.remoteDirectory + payload.filename").options(STREAM)) Once the data is stream I have an advice for handling the success and failure. I want to…
2
votes
1 answer

Execute a method after all messages are put to kafka in spring cloud integration flow after split

How can I execute a method after all the messages are put on to Kafka after split. I have tried using handle() after channel, but that ends up not posting from 2nd message on to Kafka. IntegrationFlowBuilder flowBuilder = IntegrationFlows …
2
votes
0 answers

Spring Integration: How to configure header-mapper globally

I have an application listening to different sources of events. For each of this events, I build an IntegrationFlow, where I just pipeline operations like filter and transform, and finally send this message to another API, via an HTTP request. All…
2
votes
1 answer

How to dead letter a RabbitMQ messages when an exceptions happens in a service after an aggregator's forceRelease

I am trying to figure out the best way to handle errors that might have occurred in a service that is called after a aggregate's group timeout occurred that mimics the same flow as if the releaseExpression was met. Here is my setup: I have a…
2
votes
1 answer

Spring Integration DSL Tcp: How to prevent excessive logging of Connection refused on the client side

I made both client and server able to wait for each other to connect, so they can be started independently in any order. The solution described here does exactly that, out of the box, BUT client side keeps printing massive stack traces into our…
Espinosa
  • 2,491
  • 24
  • 28
2
votes
1 answer

Spring Integration Java DSL: Create and destroy the integration flows continuously

My flows are configured in the database and my program continuously creates and destroys the flows. So the flow configurations (for example the cron configuration) can be any time changed. The flows are registered with the method…
Mike
  • 541
  • 1
  • 4
  • 18
2
votes
1 answer

Scaling File Poller | Spring Integration

With regard to spring integration, how to horizontally scale file polling? Suppose, a file poller is set for 5s to pick .tif files, and spring integration code as a boot project is running on one server. The preventDuplicate() is in effect for the…
Guru
  • 2,739
  • 1
  • 25
  • 27
2
votes
0 answers

Spring Integration is hitting mutliple outbound requests even the request is failing

@Bean public IntegrationFlow initiateFlowGeocode3() { RestTemplate restTemplate = new RestTemplate(); restTemplate.setRequestFactory(requestFactory()); System.out.println("**********in flow3"); return…
sri
  • 21
  • 1
2
votes
1 answer

How to handle FtpOutboundAdapter connection exception in spring integration flow

My flow ends with something like: .handle(ftpAdapters.rtwFtpOutboundHandler(), out -> out.advice(after())) .get(); In the advice, we have codes to handle: @Bean public ExpressionEvaluatingRequestHandlerAdvice after() { …
2
votes
1 answer

Spring Integration DSL, poll from message channel

I have an service that sends data to an message channel. I'm wondering how can I specify integration flow to poll from that message channel every X seconds and read all the data that hasn't been read so far. I'm trying to achieve something like…
2
votes
1 answer

File Inbound Adapter example provided in sample not working

@SpringBootApplication public class FileReadingJavaApplication { public static void main(String[] args) { new SpringApplicationBuilder(FileReadingJavaApplication.class) .web(false) .run(args); } @Bean …
Guru
  • 2,739
  • 1
  • 25
  • 27
2
votes
1 answer

Output and Error Channel after any/all service activator is done

I would like to execute something after service any/all service activator is done executing. The flow is defined as follows: @Bean public IntegrationFlow myFlow(MessageSource someMessageSource) { return…
Learner
  • 267
  • 2
  • 8