Questions tagged [spring-integration-dsl]
861 questions
2
votes
1 answer
Spring Sftp fetch file using outbound gateway within inbound adapter message handler
I am using Inbound Adapter using Java DSL to poll pdf files from the SFTP server. I have a use case where after fetching the pdf file application will fetch the config file present in CSV format with the same name on the SFTP server. After fetching…

Vishesh Banga
- 35
- 7
2
votes
2 answers
Spring Integration JPA Gateway: act on empty result
I have a following handle within my flow:
.handle(Jpa.retrievingGateway(this.sourceEntityManagerFactory)
.entityClass(DocumentHeader.class)
.jpaQuery("from DocumentHeader d where d.modifiedDate > :modified")
…

Blink
- 1,408
- 13
- 21
2
votes
1 answer
JSON or Pipe(|) based DSL for dynamic flow generation in Spring Integration
We are creating few SI flows using Java DSL. All flows are clubbed in a single Spring boot app, which makes us to redeploy the app every time whenever we add new flow. I was curios if somehow we abstract flow creation in a JSON format or a pipe…

Shankar Yadav
- 83
- 8
2
votes
1 answer
Spring Integration aggregator only releases one group coming from AMQP backed channel
I'm having an issue with my Spring Boot app where the only one group is processed in my aggregator and then the app stops consuming more messages from the queue. It only processes a group at startup it seems. I restarted the app and it processed…

Ivan
- 31
- 4
2
votes
1 answer
Spring Integration for Inbound JMS Adapter using DSL
I am trying to build Inbound Channel Adapter to listen to JMS Topic which is located in external JMS system. All examples I found were done in XML and not using Spring DSL.
Has any of you done it before and if so then please share knowledge or point…

Vishal
- 31
- 3
2
votes
1 answer
Spring Integration: start JPA polling only when all the results of last polling has been processed
I have a following flow that I would like to implement using Spring Integration Java DSL:
Poll a table in a database every 2 hours which returns id of documents that need to be processed
For each id, process a document through an HTTP gateway
Store…

Blink
- 1,408
- 13
- 21
2
votes
3 answers
Streaming from remote SFTP directories and sub-directories with Spring Integration
I am using Spring Integration Streaming Inbound Channel Adapter, to get stream from remote SFTP and parse every lines of content process.
I use :
IntegrationFlows.from(Sftp.inboundStreamingAdapter(template)
…

Mavlarn
- 3,807
- 2
- 37
- 57
2
votes
1 answer
Conditional File movement in Spring Integration File Support
I am implementing one Spring Integration work flow as below.
IntegrationFlows.from("inputFileProcessorChannel")
.split(fileSplitterSpec, spec -> {})
.transform(lineItemTransformer)
…

Vijay Shanker Dubey
- 4,308
- 6
- 32
- 49
2
votes
1 answer
How to properly configure a TCP inboundAdapter with QueueChannel and ServiceActivator
I am trying to configure a TCP socket that receives data in the format name,value in distinct messages. Those messages arrive on average every second, sometimes faster or sometimes slower.
I was able to set up a working configuration but I am…

Sebastian
- 858
- 7
- 21
2
votes
1 answer
Spring Integration Java DSL behavior of using multiple ".channel()"
I'm testing the behavior of the .channel() method and I've observed things that I don't understand.
@Bean
public IntegrationFlow flow() {
return IntegrationFlows.from("my-gateway")
.channel("first-channel")
…

Sid
- 33
- 5
2
votes
1 answer
How to store original message into JMS Queue instead of org.springframework.messaging.MessageDeliveryException form
I am using Spring Integration for the first time
Scenario:
Read message from source JMS Queue, then push into channel consumed by destination JMS Queue. With a wrong destination Jndi name, retry mechanism kicks in.
After retry exhausts, message…

Ravindran Kanniah
- 530
- 3
- 10
2
votes
1 answer
How to customize spring integration flow
I have a requirement like
File comes from FTP
File is copied to local directory
File is picked up
server 1 to parse and read
service 2 to enrich XYZ
service 3 to enrich CDY
service 4 to persist the data in the database and get the set the ids…

Makky
- 17,117
- 17
- 63
- 86
2
votes
1 answer
How to ask spring to create corresponding schema for JdbcMetadataStore?
I want to use jdbc metadata store which described here:
https://docs.spring.io/spring-integration/docs/5.2.0.BUILD-SNAPSHOT/reference/html/jdbc.html#jdbc-metadata-store
quote:
The org.springframework.integration.jdbc package has Database schema
…

gstackoverflow
- 36,709
- 117
- 359
- 710
2
votes
1 answer
How can I route messages in Spring Integration, which an exception was thrown during processing?
I have the following Integration Flow:
Integration Flow
If an exception is thrown during the second split method, inside the parser, I would like to channel that message to an error channel, is that possible somehow?

Kristóf Marosvári
- 21
- 4
2
votes
1 answer
How to set several message handlers for channel in spring integration DSL?
I wrote my first spring integration application which reads data from spring RSS and logs it into console:
@Configuration
@EnableIntegration
@IntegrationComponentScan
public class DslConfig {
@Bean
public IntegrationFlow feedFlow() throws…

gstackoverflow
- 36,709
- 117
- 359
- 710