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

Spring Integration and returning schema validation errors

We are using Spring Integration to process a JSON payload passed into a RESTful endpoint. As part of this flow we are using a filter to validate the JSON: .filter(schemaValidationFilter, s -> s .discardFlow(f -> f .handle(message -> { …
2
votes
1 answer

Spring Integration: SMTP server

I am using Spring Integration 4.1.2. In the program flow, at the end of a process I need to send an email. I am using the following:
adi
  • 1,711
  • 3
  • 29
  • 50
2
votes
1 answer

How to send basicAck to inbound adapter after publisher confirm from outbound adapter

We have an inbound channel adapter that receives notifications of an event. The complexity of the consumer's criteria restrict our ability to use a simple routing key to distribute the messages, so the application uses a splitter to send that…
2
votes
0 answers

spring batch Running only one Job Instance at a time and create queue it up

Running only on job instance at a time this ok : Spring batch restrict single instance of job only public class jobMailListener implements JobExecutionListener { // active JobExecution, used as a lock. private JobExecution _active; public void…
2
votes
1 answer

Spring Integration - @Filter discardChannel and/or throwExceptionOnRejection being ignored?

I have a java DSL based spring integration (spring-integration-java-dsl:1.0.1.RELEASE) flow which puts messages through a Filter to filter out certain messages. The Filter component works okay in terms of filtering out unwanted messages. Now, I…
Going Bananas
  • 2,265
  • 3
  • 43
  • 83
2
votes
2 answers

Exit Spring Integration when no more messages

I'm using a Spring Integration (4.1) config to retrieve message from DB as a batch more than as a service. I know I'll have a dozen of messages to process daily, and therefore I need to run the batch once a day. My jdbc:inbound-channel-adapter is…
Vincent F
  • 6,523
  • 7
  • 37
  • 79
2
votes
1 answer

Spring Integration - how to send POST parameters with http outbound-gateway

I'm trying to put together a really simple HTTP POST example using Spring Integration and a http outbound-gateway. I need to be able to send a HTTP POST message with some POST parameters, as I would with curl: $ curl -d 'fName=Fred&sName=Bloggs'…
Nathan Russell
  • 3,428
  • 5
  • 30
  • 51
2
votes
1 answer

Return last value query in MongoDB in Spring XD Source module

I would like to be able to create a query/query-expression that I can use in SprinXD MongoDB Source module to return only the last document that has been inserted. It seems that max-messages-per-poll doesn't do the trick (paginated data with the…
dmendezg
  • 1,888
  • 1
  • 15
  • 23
2
votes
1 answer

Spring Integration - how to pass parameters into service activator

I want to send an email once an SFTP upload is completed ... I have an SFTP uploader:
Jan Vladimir Mostert
  • 12,380
  • 15
  • 80
  • 137
2
votes
0 answers

Add a list of groovy files using

I have integrated groovy in my application using spring. My context looks like: MyGroovy is an implementation…
Blanca Hdez
  • 3,513
  • 19
  • 71
  • 93
2
votes
0 answers

Spring Integration expression too slow

I have a problem with Spring Integration. I have a filter with this expression:
Ildelian
  • 1,278
  • 5
  • 15
  • 38
2
votes
1 answer

Spring Integration 4 - How to set a Gateway's replyTimeout value dynamically?

My Gateway looks like this ... @MessagingGateway public interface MyGateway { @Gateway(requestChannel = "startChannel", replyTimeout = 1000L) ListenableFuture myFlow(); } I use an application.yml file to define some properties…
Rob O'Doherty
  • 549
  • 3
  • 14
2
votes
1 answer

Spring-integration / ActiveMQ subscribe to multiple destinations in a single thread

I am using multiple 's and 's to subscribe to multiple queues and topics. Messages from each destination are received in a separate thread, which means that my receiving code is full of locks…
zool
  • 23
  • 2
2
votes
2 answers

Deleting file after FileReadingMessageSource consumed it

Is there an option/way in FileReadingMessageSource to delete file after running receive() method? Thanks.
davitjan
  • 31
  • 4
2
votes
1 answer

JAXB marshalling exception; nested exception is javax.xml.bind.MarshalException

I am reading data from the file and validating the number and calling webservice.I am getting following error while calling webservice. [org.springframework.integration.ws.MarshallingWebServiceOutboundGateway]…
KNRAJU
  • 33
  • 1
  • 4