Questions tagged [spring-integration]

Use this tag for questions about the Spring Integration project. It is not intended for general questions about integrating other Spring projects with other technologies.

Spring Integration provides an extension of the Spring programming model to support the well-known Enterprise Integration Patterns. Spring Integration enables lightweight messaging within Spring-based applications and supports integration with external systems via declarative adapters. Those adapters provide a higher-level of abstraction over Spring's support for remoting, messaging, and scheduling.

Use this tag for questions about the Spring Integration project. It is not intended for general questions about integrating other Spring projects with other technologies. For example "How do I integrate Spring MVC with Struts?" would not be an appropriate question for this tag. Whereas "How do I solve such-and-such issue with the Spring Integration xyz channel adapter?", or "How can I use Spring Integration to communicate with [some legacy system]?" would be appropriate.

Resources

See Also

7860 questions
17
votes
1 answer

Spring Integration and TCP server socket - how can I send a message to a client?

I'm trying to create a server in Spring that's listening on a TCP port and accepts connections. I know how to route incoming requests to my service, and it can respond to those. However I would like to send messages to certain clients without any…
Aron Lorincz
  • 1,677
  • 3
  • 19
  • 29
17
votes
4 answers

Could not extract response: no suitable HttpMessageConverter found for response type

I am new with spring integration and working in spring integration http module for my project requirement. I am sending request from outbound gateway as a http client. I am trying to initiate a request to the server and server should return me …
Anish Lodhi
  • 321
  • 1
  • 4
  • 7
15
votes
2 answers

Waiting for all threads to finish in Spring Integration

I have a self-executable jar program that relies heavily on Spring Integration. The problem I am having is that the program is terminating before the other Spring beans have completely finished. Below is a cut-down version of the code I'm using, I…
seanhodges
  • 17,426
  • 15
  • 71
  • 93
15
votes
2 answers

Spring Integration Dispatcher has no subscribers for channel

I'm using spring integration and its support for MQTT; I saw the spring integration documentation and my simple test case is to publish a message on a MQTT topic. The Spring documentation is located here:…
Angelo Immediata
  • 6,635
  • 4
  • 33
  • 65
15
votes
4 answers

Spring cacheable - filter out empty collections using SpEL

I wanted to know is there a way to use SpEL in order to filter out values like empty collections. My cache currently filters out null values: @Cacheable(value = "groupIdToGroupNames",unless = "#result == null") public Map
user2512231
  • 352
  • 2
  • 6
  • 17
14
votes
1 answer

Spring Integration Kafka Consumer Listener not Receiving messages

According to the documentation provided here, I am trying on a POC to get messages into a listener as mentioned in the same documentation. Below is how I have written the configuration. @Configuration public class KafkaConsumerConfig { public…
diyoda_
  • 5,274
  • 8
  • 57
  • 89
14
votes
1 answer

Junit Mockito test case for ResponseEntity in spring integration framework

I am trying to mock the external call. ResponseEntity httpResponse = requestGateway.pushNotification(xtifyRequest); requestGateway is an interface. public interface RequestGateway { ResponseEntity pushNotification(XtifyRequest…
Jill
  • 163
  • 1
  • 5
  • 20
14
votes
1 answer

Error handling practices in spring integration flow

I have a spring integration flow that involves async execution, returning value from gateway to controller, continuing integration flow after returning a value. Here is the gateway: @MessagingGateway public interface GW { …
Sergei Ledvanov
  • 2,131
  • 6
  • 29
  • 52
14
votes
1 answer

spring integration poller vs dispatcher

I am trying to setup a simple application using spring integration. The goal is to simply use a file inbound channel adapter to monitor a directory for new files and process files as they are added. For simplicity the processing the files at the…
adeelmahmood
  • 2,371
  • 8
  • 36
  • 59
14
votes
3 answers

Spring Integration No poller has been defined for endpoint

Hi i am having a hard time solving my xml configuration, here's my spring integration config xml:
Ernest Hilvano
  • 503
  • 3
  • 8
  • 16
13
votes
1 answer

Amazon SQS java sdk stops after consuming 500 messages

I'm consuming messages from amazon SQS queue. I have thousands of messages in the queue. When I start the application (written in Java with spring framework) It starts polling messages from the queue and after receiving 500 messages It stops. If I…
Piyush
  • 1,528
  • 2
  • 24
  • 39
13
votes
1 answer

CORS not working with jQuery and Java

I am a bit stuck trying to make a call to my Java RESTFUL API with jQuery. Debugging I have found both OPTIONS and GET method are called but when GET method finishes in the server, json is not retrieved and an error raises in the broswer. OPTIONS…
Antonio Acevedo
  • 1,480
  • 3
  • 21
  • 39
12
votes
4 answers

Read one record/item and write multiple records/items using spring batch

I did some searching but couldn't find any sample/example. I've a requirement where geo coordinates from one table (input) are read, processed to generate POI's associated to coordinate. So one geo coordinate will result in one or more POI's that…
user977505
  • 539
  • 3
  • 9
  • 19
12
votes
4 answers

Warning printed after migrating to Spring Boot 3.0 & Spring Integration 6.0

After migrating a project from Spring Boot v2.7 to v3.0 (and thus from Spring Integration v5.5 to v6.0), the following warnings are printed out: WARN 22084 --- [ restartedMain] ocalVariableTableParameterNameDiscoverer : Using deprecated '-debug'…
Morgan Courbet
  • 772
  • 1
  • 8
  • 18
12
votes
2 answers

Spring batch - running multiple jobs in parallel

I am new to Spring batch and couldn't figure out how to do this.. Basically I have a spring file poller which runs every N mins to look for files with some name (ex: A.txt & B.txt) in certain directory. At any moment in time, there could be max 2…
ljustin
  • 153
  • 1
  • 1
  • 14