8,109 questions
Advice
0
votes
2
replies
36
views
Spring integration flow. Using '.handle' with class param results to null. What am I doing wrong?
Continue learning IntegrationFlows.
Question of the day. How to properly use .handle(MyCustomPojo.class, (message, payload) -> ...)?
I have defined a MyCustomPojo with lombok's NoArgs/AllArgs and ...
Advice
1
vote
1
replies
62
views
Applying conditional routing in Spring Integration flow
I'm trying to understand how to properly define routes for Spring's IntegrationFlows.
I have a MQTT source, which is implemented as a MqttPahoMessageDrivenChannelAdapter.
From there I receive messages ...
2
votes
1
answer
126
views
Received request message is changed from TCP server after upgrading Spring boot to 3.4.2
After upgrading Spring Boot from 2.7 to 3.4, receiving message from TCP server to our service is getting changed with different code. For example, previously the received message is 1784 after ...
3
votes
1
answer
148
views
How to convert a database polling service to a Spring IntegrationFlow
I have a service that polls a database within a transaction, always removing the record and if an exception is thrown during processing adds a new record incrementing the 'try count' for that entry. ...
0
votes
0
answers
40
views
Spring Integration Release Strategy Fails After Caught Exception
I have a high volume of messages being put on a QueueChannel. Each Object will have multiple updates (different hashCode, same equals(), different attribute values) that are written in time-event ...
0
votes
1
answer
90
views
Spring Batch Remote Partitioning: Worker replies reach channel but manager never receives them
I'm implementing Spring Batch remote partitioning with Spring Integration and Kafka as a middleware. Worker replies successfully arrive at the managerInboundReplies channel (confirmed via interceptor ...
3
votes
1
answer
67
views
How to read or publish concurrently with partitition key
I am using Spring Integration to implement the Transactional Outbox Pattern. I have code like this:
@Bean
IntegrationFlow eventFlow(
JdbcChannelMessageStore jdbcChannelMessageStore,
...
2
votes
1
answer
50
views
Spring Integration WebFlux - Kotlin DSL: Consuming SSE
Currently I'm in the process of porting an previously working application which consumes ServerSentEvents (SSE) using Spring Integration WebFlux from Java to Kotlin.
The former worked in Java using ...
2
votes
1
answer
62
views
Why does Spring Cloud Function invoke the first part of a composed function twice?
I have built a Spring Cloud Function application with a Spring Integration flow exposed as a function (actually, an imperative Consumer) and a reactive Function. Both functions are composed and ...
1
vote
0
answers
77
views
message-driven-channel-adapter stop receiving messages after a couple of days
I'm having an issue that I'm unable to solve it.
Here is the following scenario
In my application I'm creating an Entity and then I send that entity as XML in in a Queue.
Then I'm having an outound-...
0
votes
0
answers
40
views
Distributed lock in JdbcLockRegistry during execute slow SQL procedure
I have problem with trylock() in Spring Integration framework, when slow sql procedure is executing. I have 2 instances of Spring Boot microservices.
My flow:
schedule poller by Pollers.cron -> ...
1
vote
1
answer
64
views
Spring Boot Autoconfiguration fallback bean factory
The title could be a little misleading because @Fallback annotation exists. And what I am asking is similar to this related question but requires bean names. Let's start with the...
Context
I have a ...
0
votes
1
answer
60
views
Spring Cloud Stream RabbitMQ: NoUniqueBeanDefinitionException for ConversionService and cannot use @Primary
Question:
I’m building a Spring Boot application that uses Spring Cloud Stream with the RabbitMQ binder. My project pulls in several dependencies—Spring MVC, Spring Cloud Stream, Resilience4j (circuit ...
0
votes
1
answer
50
views
Spring Integration multiple integration flows, each with its own JDBC Inbound Channel Adapter
I want to read from 4 database tables using JDBC Inbound Adapters with polling. Each JDBC Inbound Adapter serves as the starting point of one of my 4 integration flows. Each flow is independent of the ...
0
votes
1
answer
43
views
Message sometimes doesn't get sent over StandardIntegrationFlow channel
I have a SpringBoot application using version 3.4.1 and also Spring Integration 6.4.1.
I am creating WebSockets dynamically, upon an HTTP request, to which I send messages from different threads.
The ...
2
votes
1
answer
68
views
Spring Integration Concurrent execution of JDBC Inbound Channel Adapter
I have a spring integration microservice which has an integration flow starting from an Jdbc Inbound Channel adapter.
When using JDBC inbound channel adapter in an integration flow, we can set an ...
1
vote
1
answer
50
views
Stopping message flow in the middle of a Spring integration flow
I have a spring integration flow which listens to JMS messages using the Java DSL through the use of a JMS messageDrivenChannelAdapter. It has a subflow as follows:
f -> f.handle(ServiceA)
....
1
vote
1
answer
36
views
How to extend Spring Integration IntegrationFlowBuilder with convenience functions?
We are using Spring Integration Flows in a project to create an api out of incoming kafka events.
While using these flows certain patterns have emerged in how we use them.
To keep our code short and ...
1
vote
1
answer
24
views
Verify handling order in org.springframework.integration.dsl.IntegrationFlow
I have a org.springframework.integration.dsl.IntegrationFlow
@Bean
public IntegrationFlow publishData() {
return IntegrationFlows.from(PUBLISH_DATA).enrichHeaders((h) -> {
h.header(...
2
votes
1
answer
62
views
Spring Integration - recommended splitter/aggregator setup for async subflow replying in an undefined time in the future
I currently have a flow with a splitter and an aggregator that uses a gateway to call another complex flow with asynchronous subflows.
Currently I have the gateway configured with a replyTimeout set ...
2
votes
1
answer
71
views
Spring Integration flow failing after migration to Spring Integration 6.x failure occurred in gateway sendAndReceive No reply produced by handler
I recently upgraded a project from Spring Integration 5.x to 6.4.4. Everything is working other than one flow setup that is failing and it is hard to see why. (It was working fine before).
It is quite ...
0
votes
2
answers
41
views
Spring Integration: How to route message from one QueueChannel to another?
In my setup, my IntegrationFlow is configured as follows, but the message is stuck at queueChannel1 without flowing to queueChannel2. Do you know any missing steps that I may have ?
message -> ...
1
vote
1
answer
362
views
Virtual Threads in Spring Integration for long-running external service calls
We are currently working on a Spring Integration flow where each incoming message needs to trigger a call to an external HTTP service. The external call can take up to 20 seconds to complete, and the ...
1
vote
1
answer
58
views
Handling late replies in Spring Integration
Lets assume the following scenerio:
Caller ->Gateway -> Bridge -> Aggregator---
===== output
-> TCP ...
0
votes
1
answer
84
views
Handling Early TCP Data and Registration Races in Spring Boot Behind an NLB in Kubernetes
I'm experiencing an issue with how my Spring Boot application (using Spring Integration) handles TCP connections in a Kubernetes environment. My setup includes an NLB (Network Load Balancer) in front ...
2
votes
1
answer
40
views
Spring-Integration-Core library seems to log this information at INFO level once a threshold exceeds FAILED_ATTEMPTS_THRESHOLD
https://github.com/spring-projects/spring-integration/blob/fe5b12d98bc98ff03a27ae95a72a2768ab3795a2/spring-integration-core/src/main/java/org/springframework/integration/handler/support/...
0
votes
0
answers
71
views
Spring Boot JDBC Distributed Locking Not Working
I am using Spring Boot Version - 3.2.4. I have an API service that runs on 2 instances, that API creates an order in the system. I am using Spring Boot Integration for JDBC locking. But in some ...
0
votes
1
answer
45
views
Spring integration smb - windows shared drive - not scanning sub directories
Below code is only copying the files from the (windows shared drive)remote directory but all the sub directories of remote directory are skipped. I don't understand why the sub directories are skipped....
1
vote
1
answer
53
views
How to silence Spring Integration TCP Pool Timeout
Whenever my tcp client is down, I get these errors. How do I silence it? I don't see it going to errorChannel for some reason.
ERROR [main][org.springframework.integration.ip.tcp....
0
votes
1
answer
48
views
spring boot 3 upgrade causing delays in receiving message from rabbit mq
I'm upgrading from Spring Boot 2.7 to Spring Boot 3.3
Publisher(another app) publishes to exchange migration.rxi to queue migration.wq to exchange migration.rxo to queue migration.q
Mine is spring ...
1
vote
2
answers
238
views
Handling IBM MQ transactions via Spring Integration
A Java spring boot micro-service is required to consume messages from an IBM point-to-point message queue. After processing some transformations and enrichments, the resultant messages need to be sent ...
1
vote
2
answers
161
views
Transactionalizing reading from a IBM MQ queue and publishing to multiple IBM MQ queues using Spring Integration
I have a requirement where I have to read a message from an IBM MQ queue and then publish it to 3 different queues after performing different transformations for each.
Is it possible to handle this in ...
1
vote
1
answer
66
views
Ensuring Independent Connections for Threads in Spring Integration TCP
[Problem]
We are facing an issue where a connection created in one thread is being shared with another thread when a new request comes in. This happens even though each request should have its own ...
2
votes
1
answer
88
views
Wondering why spring leader election with JDBCLockRepository is constantly trying to insert into DB
Some year ago, we switched from some self built leader election mechanism to spring integration leader election, both on MariaDB clusters, relying on duplicate key violation. We switched to spring ...
1
vote
1
answer
54
views
Spring Integration: How to process messages in parallel, but ensure order depending on the message "group ID"?
I have a spring integration flow that does polling with JdbcPollingChannelAdapter, like this:
IntegrationFlow.from(buildJdbcMessageSource(),
c -> c.poller(...
1
vote
1
answer
38
views
How to get KinesisMessageDrivenChannelAdapter exposed on JMX?
I'm trying to get KinesisMessageDrivenChannelAdapter exposed on JMX so that I get access to operations that manipulate the checkpoints (resetCheckpointForShardToSequenceNumber etc.). But all I can see ...
0
votes
0
answers
114
views
How can I get spanId and traceId from a message received from a kafka topic with spring integration
I have figured out how to implement observability with spring boot, micrometer and open telemetry. It al works fine only we have some services build with spring integration for pulling a message from ...
1
vote
1
answer
91
views
Spring integration multiple tcp connections Ping, Send
I'm implementing a TCP client in Spring Integration with multiple socket connections and facing an issue with keeping all the connections alive.
Current Implementation
I've set up multiple cached TCP ...
0
votes
1
answer
42
views
Implementing ExecutorChannel instead of DirectChannel for Sftp upload Operation using spring boot integration
In my project I have used DirectChannel bean ,its working perfectly .But the new requirement is doing Async sftp upload parallelly using ExecutorChannel .. But files are not getting transfered .
@...
1
vote
1
answer
33
views
sendTimeout appears to be ignored in sourcePollingChannelAdapterSpec vs creating adapters manually
When I create an IntegrationFlow setting the sendTimeout() value on SourcePollingChannelAdapterSpec is being ignored causing the polling thread to block. This does not happen if I create a ...
1
vote
1
answer
45
views
Discarding overaged remote files using Spring Integration SMB inbound adapter
My application has to download files from a remote file server in regular time intervals.
My implementation is based on Spring Integration SMB and generally works as expected (see the listing below).
...
2
votes
1
answer
108
views
Spring Integration multiple file transfer to remote file system with delay
I'm trying to implement a Spring Integration Flow transferring files from a local file system to a remote file system using Spring Integration's SMB support.
My Spring Boot configuration is as follows:...
1
vote
1
answer
232
views
Spring Integrations. Sending messages to MQTT
As part of the learning curve, I am trying to publish a message to Mosquitto MQTT using Spring Integrations. I've set up a config (mostly from parts I found by googling, but the Listener part works ...
0
votes
1
answer
86
views
@IntegrationComponentScan annotation cannot scan @MessageGateway component
I'm using SpringBoot3.2 and SpringIntegration6 for supporting MQTT messages,
I have defined a public Maven module named sz-common-mqtt, and the effect I want to achieve is that any other module that ...
0
votes
1
answer
41
views
No reply in wiretap
I would like to create an asynchrone flow. My main flow "jiraVersionWebhook" will return a response quickly, and with a wiretap I will execute long process with split and another component. ...
0
votes
1
answer
28
views
Identifying when a spring integration JMS Outbound Adapter write commit is successful?
Is it possible to attach a TransactionSynchronizationFactory to an outbound JMS Outbound Adapter?
We are trying to send a message to a JMS queue and want to update a database once the JMS send is ...
0
votes
1
answer
46
views
In a spring integration flow is using a SyncTaskExecutor the same as using a single threaded flow?
We want to commit JMS read transactions based on a property in the middle of our flow. Our implementation currently uses an executor to achieve this.
@Bean
public Consumer<...
1
vote
1
answer
110
views
UnknownHostException: null using Spring Integration SMB
I try to write some files on a SMB share using Spring Integration SMB. I have the following configuration:
@Configuration
public class SambaConfiguration {
@Value("${samba.host}")
...
2
votes
1
answer
83
views
Creating Integration Flows Dynamically
I have a scenario where multiple integration flows (e.g., listening to JMS queues) are created during app runtime via IntegrationFlowContext and it works fine (SpringBoot 3.4.0), however we noticed ...
0
votes
1
answer
93
views
Spring Integration: Aggregator pattern - a way for downstream component to know if group is complete
We are using Spring Integration 6.3.3 Aggregator pattern, with JDBCMessageStore, and expiry timeout. We want to also send the partial group on expiry, which we consider as an error condition. We want ...