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

combine spring batch and spring integration?

thanks for attention,i defined a combine spring batch and spring integration project and communicate with ftp server to retrieve file and process on it and write on ftp, i am looking for a good architecture for my project, i designed an architecture…
Alireza Alallah
  • 2,486
  • 29
  • 35
2
votes
2 answers

Spring Integration | Header Enricher using Java Configuration

What's Java config equivalent to following header enricher:-
Kumar Sambhav
  • 7,503
  • 15
  • 63
  • 86
2
votes
2 answers

sftp outbound-gateway with get command throws exception when file with the same name already exists

I am attempting to use an sftp outbound gateway to download a file from a remote sftp server. Here is the gateway configuration:
gonorovs
  • 35
  • 6
2
votes
1 answer

How to create a async step in spring-batch?

I have an existing spring-batch Step and would like to refactor it with Async processor + writer. StepBuilderFactory steps; steps.get("test").chunk(1000) .reader(new FlatFileItemReader()) .processor(new…
membersound
  • 81,582
  • 193
  • 585
  • 1,120
2
votes
1 answer

How to keep messages in channel with no subscriber in Spring Integration?

I have the following set-up in a Spring Integration 4.1 project: A chain subscribed to a publish-subscriber channel. A service bus that starts/stops the chain. What happens when I stop the chain, is that the messages dissapear from the topic and I…
Victor
  • 2,450
  • 2
  • 23
  • 54
2
votes
1 answer

How to customize or delegate TcpNetClientConnectionFactory as TCP connection pool in spring integration

I am trying to implement/delegate my own TCP connection pool using the class TcpNetClientConnectionFactory for client tcp connection. Below is my bean definition and I've injected it in my outbound adapter. I am also using ThreadLocal to get the…
rose000
  • 73
  • 8
2
votes
1 answer

Send MessageProperties [priority=anyInteger] while publishing message in RabbitMQ

we are using rabbit MQ and Spring Integration in our project. Every Message has a deliver mode, header, properties, and payload part. We want to add properties i.e) priority with value 2(any integer) , payload with "test message 3" and publish the…
Raghu
  • 1,363
  • 1
  • 23
  • 37
2
votes
1 answer

How to do unit test in spring integration.?

I am new to spring integration. I need to write unit test for the integeration graph. This graph starts with gateway->splitter->enricher->aggregator->Transformer. So if i want to write a unit test for enricher alone, how do i need to do it.? I…
Manoj
  • 5,707
  • 19
  • 56
  • 86
2
votes
1 answer

Spring Integration: TcpOutboundGateway getting DestinationResolutionException: no output-channel or replyChannel header available

I am trying to communicate to a legacy (non spring) system via TCP using TcpOutboundGateway and process the response but I get the following error: DestinationResolutionException: no output-channel or replyChannel header available The code kicks of…
2
votes
2 answers

Spring integration message-store rolled back before error handler

I need to handle certain error conditions within my spring integration flow. My flow is using a message store and setting the error channel on the poller. I had thought that if I handled the message in the error handler that the rollback would not…
sculbert
  • 33
  • 5
2
votes
2 answers

how to handle exception this org.springframework.integration.MessageHandlingException: HTTP request execution failed for URI [{outBoundUrl}]

While using spring integration http outbound getting this exception: org.springframework.integration.MessageHandlingException: HTTP request execution failed for URI [{outBoundUrl}] org.springframework.integration.MessageHandlingException: HTTP…
Perla Reddy
  • 41
  • 1
  • 1
  • 6
2
votes
1 answer

How to receive list of directories or file from ftp server with int-ftp:outbound-gateway?

I defined ftp adapter to connect to ftp server, but I see ftp server log and don't see request sent to ftp server. my adapter code is :
Alireza Alallah
  • 2,486
  • 29
  • 35
2
votes
1 answer

Spring Integration Kafka threading config

I'm using spring-integration-kafka 1.1.0 with the following config. I don't quite understand about the streams config. When I increase this, does Spring automatically spawn more threads to handle the messages? e.g. when I have streams=2, does the…
heyu
  • 185
  • 1
  • 13
2
votes
2 answers

How to put “new line” in Spring Expression Language?

What would be the exact SpEL expression to go to the new line. Here is my configuration:
Ulhas N
  • 316
  • 4
  • 17
2
votes
1 answer

Spring test : strange behavior of context config caching between test classes ?

I am writing tests for a Spring Integration project, and I am running into something strange : I've read about how Spring caches the context between tests and how we can force to clean the cache with @DirtiesContext annotation. However, I'm not able…
Vincent F
  • 6,523
  • 7
  • 37
  • 79