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
11
votes
2 answers

Spring Integration or Spring Cloud Data Flow

I'm in the process of moving some of my application to microservices. One example service is a RSS crawler which uses Spring Integration to send items to Kafka. I also see there is Spring Cloud Data Flow which uses Spring Integration and Spring…
Swordfish
  • 1,127
  • 24
  • 46
10
votes
1 answer

How to restart a SimpleMessageListenerContainer

I try to connect to a RabbitMQ with spring boot. The connection should always restart/retry the connection. I have a problem reconnecting after a fatal exception. The application can never loose a connection and not indefinitely retry to get a…
Florian
  • 1,827
  • 4
  • 30
  • 62
10
votes
5 answers

Micro Services communication

I'm new to micro-services, and I'm trying to take my project and turn it into A micro services based project. My problem is figuring out how each service communicates with each other. First, I explored the REST style service, but if each service is…
Moshe Arad
  • 3,587
  • 4
  • 18
  • 33
10
votes
2 answers

How to configure JMX with Spring Boot

I have created a Spring Integration application with Spring Boot. I would like to know how to configure JMX with Spring Boot. I believe by default JMX is configured when using Spring Boot Actuator. Do I need to configure anything else to be able…
zachariahyoung
  • 821
  • 4
  • 17
  • 29
10
votes
1 answer

Spring integration gateway "Dispatcher has no subscribers"

I am getting an exception Dispatcher has no subscribers on the outboundChannel and can't figure out why. I am sure its something simple, I have stripped back my code to a very simple sample below: My context is:
Cheetah
  • 13,785
  • 31
  • 106
  • 190
10
votes
3 answers

StaleObjectStateException with Hibernate in read operation?

I am using Hibernate in a listener of Spring DefaultMessageLisenerContainer. When I let the listener run with multiple threads, I often encounter this StaleStateException for a read only operation: Query q = session.createQuery("SELECT k FROM…
Khue Vu
  • 3,112
  • 4
  • 37
  • 40
9
votes
3 answers

Spring Integration: Content based router with default output channel?

I'd like use Spring Integration to implement a content based router that uses a default output channel if the expression value doesn't match any of the mappings. Here's my bean definition:
otto.poellath
  • 4,129
  • 6
  • 45
  • 60
9
votes
1 answer

Kafka: what is the point of using "acknowledgment.nack" if I can simply "not acknowledgment.acknowledge"

Regard new feature of Kafka aimed for negative acknowledgement and now supported by Spring-Kafka, according to /spring-kafka/docs/2.4.4.RELEASE/ "... Starting with version 2.3, the Acknowledgment interface has two additional methods nack(long sleep)…
Jim C
  • 3,957
  • 25
  • 85
  • 162
9
votes
1 answer

Spring Integration error "no output-channel or replyChannel header available"

I am not sure why I am getting the exception Caused by: org.springframework.messaging.core.DestinationResolutionException: no output-channel or replyChannel header available Its just a simple IntegrationFlow but not sure what am I missing here in…
9
votes
1 answer

Kafka Connect with Spring Framework

Is anyone aware of any Spring Boot integration with Kafka Connect? There is a spring-kafka project that I think gives a nice integration with Kafka clients but not connect and streams APIs.
9
votes
1 answer

How come jobParameters cannot be found in ItemProcessor using annotations?

I am having issues using the job parameters in my item processor. At this time, the code is basically setup like: How to get Job parameteres in to item processor using spring Batch annotation but I am receiving an error at runtime. Also, please note…
Tony Edwards
  • 431
  • 1
  • 7
  • 18
9
votes
3 answers

how to send and receive from the same topic within spring cloud stream and kafka

I have a spring-cloud-stream application with kafka binding. I would like to send and receive a message from the same topic from within the same executable(jar). I have my channel definitions such as below:- public interface ChannelDefinition { …
9
votes
1 answer

Spring Integration: no output-channel or replychannel header available

I wrote a simple spring integration application that moves files from one directory to another, it looks like this: @Bean @InboundChannelAdapter(value="requestChannel", poller = @Poller(fixedDelay="100")) public FileReadingMessageSource adapter(){ …
Blue
  • 601
  • 2
  • 8
  • 19
9
votes
1 answer

Mule ESB vs. Spring Integration

The Mule ESB project explains its difference to Spring Integration on its website. However, regarding dcterms.date 2012-07-19T18:43-03:00 of the document, the text might be outdated. The main points of the quoted paragraph are "Spring Integration…
Matthias
  • 7,432
  • 6
  • 55
  • 88
9
votes
2 answers