Questions tagged [spring-integration-dsl]

861 questions
0
votes
0 answers

ActiveMQ one queue multi consumers

I understand that there are a lot of similar questions, but I couldn't find the correct answer. I'm using a few microservices that have to listens to a single ActiveMQ Queue. Every microservice use a Spring Integration 5 with DSL Messaging flow. Is…
Aventes
  • 569
  • 1
  • 8
  • 20
0
votes
1 answer

Add prefix or suffix to filename while streaming the file using GET gateway

I want to add the temporary prefix or suffix while streaming the file from a remote directory using SFTP. I have tried to add temporaryFileSuffix to outboundGateway while streaming the file but it is not adding any suffix later I checked it is…
0
votes
0 answers

How do i retrive recent unread messages(which are in inbox before folder gets opened). I want to read them once folder get's opened

I'm just trying to read the unread email's from Gmail using IMAP. So when I run my application is able to read all the unread email's. Even though those emails are already available in INBOX before I ran my application. Here is the problem let's say…
0
votes
1 answer

Junit test cases for Integration flow and generic handler

I want to write a JUnit test case and integration test case for Integration flow and GenericHandler. I have gone through some articles but didn`t found anything useful. Code Snippet 1 IntegrationFlows.from(() -> path, e ->…
David
  • 507
  • 2
  • 6
  • 14
0
votes
1 answer

To sink in the http responses of a remote service to a publisher

Our system receives messages to fetch data from remote service and then store it into the database. Currently, it opens multiple connections with the database to save the fetched data for each request. We want to convert it into a process with…
0
votes
1 answer

Send a email when any Errors got in my errorChannel using Spring integration DSL

I am developing an API in spring-integration using DSL, this how it works JDBC Polling Adapter initiates the flow and gets some data from tables and send it to DefaultRequestChannel, from here the message is handled/flowing thru various channels.…
user2462133
  • 64
  • 3
  • 7
0
votes
0 answers

Discard reading the files when read one file fails during SFTP streaming

I am reading files one by one from remote directory using SFTP. To perform this I am using LS gateway, followed by split, GET gateway and then in the end rename the file. Sequence of files is very important for me, so the name of the file is having…
0
votes
1 answer

how to make the whole downstream flow of an executor-channel task retry-able?

In the same way as you can easily add an advice to a poller (for a queue-channel) so as to apply it to the entire downstream flow, is there a way to make the whole downstream flow of an executor-channel task retry-able ?
user2038596
  • 535
  • 1
  • 3
  • 14
0
votes
0 answers

Spring Integration Email

What is the basic code to poll on a generic email account with inner folders for emails with attachments and get the data for further processing in spring integration?
Guru
  • 2,739
  • 1
  • 25
  • 27
0
votes
1 answer

Stop renaming file if data processing fails while streaming remote directory file

I am reading the file from remote directory using SFTP. I am able to get file by stream using outbound gateway, and move it to archive folder even. I am processing the data in file but if there is some issue in data then I am throwing an error. I…
0
votes
1 answer

How to expose SOAP Web Service using MarshallingWebServiceInboundGateway (with Spring Integration DSL)

I’m struggling to find good examples of Spring Integration using the MarshallingWebServiceInboundGateway I put together a working sample that uses MarshallingWebServiceInboundGateway to expose an Order service, and when called it consumes an order…
0
votes
1 answer

Consuming messages no longer works after upgrading to Spring Integration 5

I'm trying to upgrade a project using Spring Integration 4.3 and Spring Boot 1.6 to Spring Integration 5.1 and Spring Boot 2.1. Previously I had the following configuration: IntegrationFlows.from(Amqp.inboundAdapter(connectionFactory, "queueName") …
Johan
  • 37,479
  • 32
  • 149
  • 237
0
votes
1 answer

Spring-Integration: multithreaded creation of sftp directories with common root fails

I have multiple threads which upload sftp files through an Sftp.outboundAdapter. Each thread needs to create a directory path with a common root. I get an exception which tells me that the common root…
dschulten
  • 2,994
  • 1
  • 27
  • 44
0
votes
1 answer

How do I continue to perform aggregation on a single thread that has polling?

I create a flow, which polls rows from database by status, validate them and after that aggregate to collection. After processing the entire flow, each line is set to the appropriate status. But when I use aggregator with release strategy…
Roman
  • 61
  • 1
  • 6
0
votes
0 answers

Internal exception occurs in org.springframework.integration.dsl.filter(...) method

We observed DLQ messages are missing trace stack in RabbitMq when the runtime exception is originated in the execution scope of org.springframework.integration.dsl.IntegrationFlowDefinition.filter(...) method. For example, using the following code…