Questions tagged [spring-integration-dsl]
861 questions
3
votes
2 answers
Spring Integration Flow ClassCastException after Spring Boot 3.0.1 Update
I was working on the Spring Boot Update to 3.0.1 and with it the Upgrade of Spring Integration 6.0.0 and Spring Cloud Stream 4.0.0. After upgrading however my previously working Spring Integration Flow is failing with underlying…

Noreia
- 51
- 5
3
votes
1 answer
Scatter Gather with parallel flow (Timeout in aggregator)
I've been trying to add a timeout in the gather to don't wait that every flow finished.
but when I added the timeout doesn't work because the aggregator waits that each flow finished.
@Bean
public IntegrationFlow queueFlow(LogicService service) { …

jandresboyaca
- 31
- 3
3
votes
1 answer
Spring Integration DSL: After .routeToRecipients() can I route the outputs of the subflows back to the main flow?
I have the following code where I branch into recipientFlows in the mainFlow and then process the result of those recipientFlows in a separate persistToDbFlow, via a direct channel PERSIST_TO_DB_CHANNEL:
@Bean
IntegrationFlow mainFlow() {
return…

Chris
- 4,212
- 5
- 37
- 52
3
votes
1 answer
How do I use a Transaction in a Reactive Flow in Spring Integration?
I am querying a database for an item using R2DBC and Spring Integration. I want to extend the transaction boundary a bit to include a handler - if the handler fails I want to roll back the database operation. But I'm having difficulty even…

Alan Moffet
- 139
- 3
- 13
3
votes
1 answer
Spring Integration Testing of Outbound Http Enpoint
I am new to the Spring Integration project, now I need to create a flow with Java DSL and test it.
I came up with these flows. First one should run by cron and invoke second one, which invokes HTTP endpoint and translates XML response to POJO:
…

Constantine
- 381
- 1
- 3
- 10
3
votes
2 answers
Why client gets 500 response error although server doesn't experience any errors in spring-integration-http?
I have following server configuration:
@Configuration
@EnableIntegration
public class Config {
@Bean
public IntegrationFlow integrationFlow() {
return IntegrationFlows.from(Http.inboundGateway("/spring_integration_post")
…

gstackoverflow
- 36,709
- 117
- 359
- 710
3
votes
1 answer
how to call soap webservice using spring integration java dsl with operation name
I am trying to call a soap webservice using spring integration's MarshallingWebServiceOutboundGateway. The following is my flow which is quite simple:
@Bean
public IntegrationFlow asghar() throws Exception {
Map action = new…

MohammadZoghi
- 578
- 1
- 7
- 17
3
votes
1 answer
Break the Transformer flow Spring Integration
I have spring integration flows. One for the file poller and other one is to process the file
flow # 01
poll the file in C:/testing directory
files comes goes to "process" queue
flow # 02 (from "process")
Transformer(new FindTheDepartItbelongs())…

Makky
- 17,117
- 17
- 63
- 86
3
votes
1 answer
Enriching Header with the value from the Transformer
I have a spring integration flow. It reads the file. The file can belong to the consumer.Once I find the consumer I want to add that CONSUMER to the header so later on I can use e.g. In error handling I can check that did I even get the consumer…

Makky
- 17,117
- 17
- 63
- 86
3
votes
1 answer
Spring Integration Java DSL: How to route with the channelMapping method to the channel which name is in the headers?
How to route with the channelMapping method to the channel which name is in the headers? So if I try this
@Bean
private IntegrationFlow postDataToChannelX() {
return f -> f
...
.…

Mike
- 541
- 1
- 4
- 18
3
votes
1 answer
Spring Integration: How to dynamically create subdir on sftp using IntegrationFlow
I have a use case for transfering files to sftp under certain subdirs that are created dynamically.
I got this working using custom SftpMessageHandler method and a Gateway. But the issue with this approach was, it was not deleting local temp files…

Mia
- 169
- 1
- 2
- 11
3
votes
1 answer
Spring Integration DSL: How to add the HTTP.outboundGateway header?
What is the easiest way to add the HTTP.outboundGateway header in my program?
What I want to do is:
I first do the HTTP GET for the URL
http://localhost:8050/session
then I get the JSON
{
"session": "session8050"
}
I extract the value of the…

Mike
- 541
- 1
- 4
- 18
3
votes
1 answer
How to correctly use the Scatter-Gather pattern?
I am still pretty new when it comes to Spring Integration, I am trying to use IntetrationFlowDefinition.scatterGather() with no avail. The general idea is to:
take a String as an input
use a splitter to tokenize it using the space character
send…

the4dK
- 632
- 6
- 13
3
votes
1 answer
Spring Integration and Spring Cloud Stream
I am writing an application that
Polls the directory (Sprint Integration DSL flow)
Once the file is available it will put in the rabbitmq queue
Microservice listen to the stream RabbitMQ and process the file (this is written in Spring Cloud…

Makky
- 17,117
- 17
- 63
- 86
3
votes
0 answers
Reactive Flux emit when collection changes
First time using WebFlux, Flux, reactive, etc. I've got a simple server setup to GET, POST, PUT, DELETE a Message. I'd like to emit a value over a server sent event flux as soon as the server router receives a POST.
fun router() = router {
…

Lou Morda
- 5,078
- 2
- 44
- 49