Questions tagged [spring-integration-dsl]
861 questions
3
votes
1 answer
Warning with stack trace "No bean factory"
I developed a custom dynamic FTP component to work with spring integration dsl. The component works fine with spring-boot 1.3.0. However, I had to update spring-boot in some of my integrations to use barrier dsl feature, going to 1.5.6.
From now on,…

Higor Oliveira
- 129
- 2
- 8
3
votes
1 answer
How to invoke a channel in spring integration tests
I have a Flow which takes string input
@Bean
public IntegrationFlow myFlow() {
// @formatter:off
return IntegrationFlows.from("some.input.channel")
.handle(someService)
…

nagendra
- 593
- 1
- 9
- 29
3
votes
1 answer
Sending message with Spring Integration to ActiveMQ Artemis topic
Goal
I would like to send a message to a topic which I will process later with a client applications. For this purpose I use Spring Boot and Spring Integration Java DSL with its JMS module. As a message broker I use a native ActiveMQ Artemis.
Here…

Csuki
- 1,297
- 8
- 21
3
votes
1 answer
How to add request headers to outboundGateway spring integration dsl
I couldn't find a function to add headers to outboundGateway in spring integration dsl.
.handle(outboundGateway("localhost:8080/search")
.httpMethod(HttpMethod.GET)
.expectedResponseType(Order.class))
The headers that i would like to…

nagendra
- 593
- 1
- 9
- 29
3
votes
1 answer
How to handle transactions for Spring integration flows (Java DSL)
How is it possible to define a transaction for a complete flow in spring integration (Java DSL)?
With Spring integration we can define an example flow with:
@Bean
public IntegrationFlow myMessageFromMessageAmqpInboundFlow() {
return…

ABX
- 1,173
- 2
- 22
- 39
3
votes
1 answer
Dynamic http inbound gateway using spring-integration-dsl
I am trying to create and register runtime Integration flow for HTTP inbound gateway using Java DSL as code provided below
@Autowired
private IntegrationFlowContext flowContext;
public static void main(String[] args) {
…

SM_DBArchitect
- 31
- 1
- 2
3
votes
1 answer
Configure error handling and retry for Http.outboundGateway spring dsl
I have a requirement where i need to make a rest call when it fails i have to retry 3 times and depending on the status code received i need perform different action, i couldn't find a proper spring integration dsl example. How to configure the…

nagendra
- 593
- 1
- 9
- 29
3
votes
1 answer
How to unmarshall xml using spring integration dsl
I working on spring integration dsl. The requirement is read a xml message from queue, based on message header value, i need to invoke a different service. I was able to fetch the message from queue but unable write code in dsl for unmarshalling the…

nagendra
- 593
- 1
- 9
- 29
3
votes
1 answer
Sprint Integration DSL - Http Inbound adapter and poller
I'm fairly new to Spring Integration and I'm trying to setup a simple use case:
polling a remote REST endpoint, split the returned payload into multiple lines and send it to a Kafka outbound adapter. I successfully did something analogous, which…

Luciano
- 847
- 1
- 11
- 23
3
votes
1 answer
How to pace the consumption of a sqs queue using spring integration
I am trying to set up a integration flow to consume messages from a amazon sqs queue and its working fine so far. But i would like to pace the number of messages per minutes or seconds. e.g. 20 messages per minute.
Here is the definition of my sql…

Warley Noleto
- 513
- 6
- 15
3
votes
1 answer
Spring Integration DSL - Wait for input from channel in the flow
I wonder if it's possible in spring integration to include an external channel in the flow. So I have http inbound gateway flow, and after it's triggered it should communicate with other process via udp ports. My biggest concern is how to receive a…

Stevan
- 1,933
- 1
- 18
- 19
3
votes
1 answer
Spring integration DSL: configure handler that handles only when the argument matches
I am using Spring Integration DSL configs. Is it possible to add a method reference handler such that the handler is invoked only when the message payload matches the handler argument type?
For example: in the following code, if the payload is…

hummingV
- 1,014
- 1
- 11
- 25
3
votes
1 answer
Spring Integration Java DSL - Reusable object in the flow
I am new to Spring Integration DSL, and I am stuck with with a problem. I need to use Object from beginning of the flow on a specific point in the subFlow or any other point in the flow, something like a Session variable which is reusable throughout…

Stevan
- 1,933
- 1
- 18
- 19
3
votes
1 answer
How to add custom method to spring integration ftp gateway interface?
Following the Spring integration ftp doc , I have managed to send files to ftp server through the java config way:
@MessagingGateway
public interface MyGateway {
@Gateway(requestChannel = "toFtpChannel")
void sendToFtp(File…

rellocs wood
- 1,381
- 4
- 21
- 36
3
votes
1 answer
Using filter with a discard channel in Spring Integration DSL
I don't know if this question is about spring-integration, spring-integration-dsl or both, so I just added the 2 tags...
I spend a considerable amount of time today, first doing a simple flow with a filter
StandardIntegrationFlow flow =…

amsmota
- 171
- 2
- 11