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
2
votes
1 answer

Spring Integration MQTT cleanSession=false fails because client unsubscribes from topics

I'm configuring Spring Integration to use cleanSession=false on one of my channels.
ddewaele
  • 22,363
  • 10
  • 69
  • 82
2
votes
0 answers

Why service activator has got access only to payload and not headers etc

Why it is like that service activator has got access only to payload while message transformer has got access to payload and request header.... Regards, Lalit
Lalit Kumar
  • 423
  • 1
  • 4
  • 12
2
votes
1 answer

Spring Integration - Barrier

I have a thread that uses gateway (void) to send a message to both (pub/sub): barrier, to hold the thread during the real execution (requires-reply="true" timeout="XXXX", output-channel="nullChannel" and to splitter which next sends splits as…
m52509791
  • 449
  • 5
  • 13
2
votes
1 answer

Move file with file-adapter with SI

Move file with file-adapter Hi I'd like to move file in sucess folder after it'is consumed or in failed folder when there is the problem. Around I found different example but I could not figure out an easy solution to move file with…
Martin
  • 21
  • 1
2
votes
1 answer

Spring Integration - Message Driven Channel Adapter - transformer error handle, original message

i have a problem handling errors within a flow of spring integration. The flow works like this my entry point is a message driven channel adapter -> router -> filter -> transformer -> service activator -> Database. I've wrote my own error handler…
Jesús Chacón
  • 187
  • 1
  • 9
2
votes
1 answer

How to use WatchServiceDirectoryScanner via configuration without a locker

I am trying to watch a folder tree for new files, and it seems like WatchServiceDirectoryScanner is exactly what I need, but I can't get the configuration to start without a locker without throwing a BeanCreationException. How do I tell it I don't…
Buddha Buddy
  • 148
  • 8
2
votes
1 answer

Dynamically loading Spring Integration components

I need to be able to add converters to a running Spring integration application context managed by an MVC application, in order to achieve that, I started by a simple POC where I load a new converter on runtime (this converter wasn't scanned at…
Camilo Casadiego
  • 907
  • 3
  • 9
  • 33
2
votes
1 answer

Eclipse Paho Mqtt - Spring Java configuration

I want to use MqTT in my SpringMVC project. In this link,the official example, creates all the objects with new keyword. As far as I know, this is not Spring style. The recommended way to do this creating bean, isn't? I found some examples…
Black Glix
  • 689
  • 2
  • 11
  • 26
2
votes
1 answer

Spring Integration Java DSL - Http Outbound Gateway uri variable Expression

I have a Http Outbound Gateway where I want to set a uri variable with a value from a Message header. I can see that this can be done like so: .handle(Http .outboundGateway(serviceUri, restTemplate) …
Going Bananas
  • 2,265
  • 3
  • 43
  • 83
2
votes
1 answer

How to make a header value router in spring integration java dsl and assign it a default output channel?

I have it like this currently: .route("headers.STATE", new Consumer>() { @Override public void accept(RouterSpec spec) { spec …
alokraop
  • 853
  • 1
  • 11
  • 29
2
votes
1 answer

JMS Outbound Gateway on a clustered environment

We would be deploying Spring integration code to a web application running on a multiple tomcat servers. We have a JMS Outbound gateway like below. The question is whether it is possible that the message sent by one of the servlet container JVM (say…
Palak Shah
  • 71
  • 9
2
votes
1 answer

Concurrent processing with spring inbound file adapter

I have a file system directory that I want to poll for files and then process each file concurrently, with a single thread per file. My impression was that, under the cover, InboundFileAdapter puts each file into a queue, so I could then use an…
jwilner
  • 6,348
  • 6
  • 35
  • 47
2
votes
1 answer

Using Spring Boot & Spring Integration with database backed Configuration

For spring boot + integration application, I'm attempting to load configuration from database, allow it to be accessible to Spring's Environment & inject-able via @Value annotation and be override-able by externalized configurations as described in…
ap1331
  • 23
  • 3
2
votes
1 answer

How to Interrupt or Cancel a Spring Integration Java DSL flow?

Contemplating implementation of a feature wherein a JdbcRepositoryHandler (implemnting MessageHandler) might listen for an outside event (e.g., CancelRunEvent). I think I'd use Spring' ApplicationEvent support to publish an event via a REST…
Chris Phillipson
  • 795
  • 1
  • 15
  • 34
2
votes
0 answers

Spring Integration Kafka with OffsetManager

I'm new with Spring Integration and trying to build a application that consume and process messages from a Kafka topic. I was able to handle the messages with success using KafkaHighLevelConsumerMessageSourceSpec: @Bean IntegrationFlow consumer()…