Files
spring-integration-samples/intermediate/splitter-aggregator-reaper
Spring Operator aa8dff4cfd URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://maven.apache.org/xsd/maven-4.0.0.xsd with 67 occurrences migrated to:
  https://maven.apache.org/xsd/maven-4.0.0.xsd ([https](https://maven.apache.org/xsd/maven-4.0.0.xsd) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt with 68 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://projects.spring.io/spring-integration with 68 occurrences migrated to:
  https://projects.spring.io/spring-integration ([https](https://projects.spring.io/spring-integration) result 301).
* http://repo.spring.io/libs-milestone with 1 occurrences migrated to:
  https://repo.spring.io/libs-milestone ([https](https://repo.spring.io/libs-milestone) result 302).
* http://repo.spring.io/libs-snapshot with 2 occurrences migrated to:
  https://repo.spring.io/libs-snapshot ([https](https://repo.spring.io/libs-snapshot) result 302).
* http://repo.spring.io/libs-staging-local with 1 occurrences migrated to:
  https://repo.spring.io/libs-staging-local ([https](https://repo.spring.io/libs-staging-local) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 134 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 67 occurrences
2019-03-16 12:54:41 -04:00
..
2019-03-16 12:54:41 -04:00

Splitter/Aggregator with Reaper Sample

Overview

Demonstration of how to implement the Splitter/Aggregator Enterprise Integration Patterns (EIP) using Spring Integration. This sample provides a demonstration of request-reply, splitting a message, and then aggregating the replies. Furthermore, this sample is processing the split messages concurrently and also deals with timeout conditions. Lastly, this sample provides a concrete example of a message store reaper in action.

Run the Sample

  • running the "Main" class from within STS (Right-click on Main class --> Run As --> Java Application)

  • or from the command line:

    $ gradlew :splitter-aggregator-reaper:run

You should see the following output:

13:47:54.886 INFO  [main][org.springframework.integration.samples.splitteraggregator.Main] 
=========================================================
                                                     
          Welcome to Spring Integration!                 
                                                     
    For more information please visit:                   
    http://www.springsource.org/spring-integration       
                                                     
=========================================================
13:47:56.039 INFO  [main][org.springframework.integration.store.MessageGroupStoreReaper] started org.springframework.integration.store.MessageGroupStoreReaper@4b85c17
Please enter a choice and press <enter>: 
	1. Submit 2 search queries, 2 results returned.
	2. Submit 2 search queries, 1 search query takes too long, 1 results returned.
	3. Submit 2 search queries, 2 search queries take too long, 0 results returned.
	q. Quit the application
Enter you choice: 1
13:48:01.036 INFO  [searchRequestExecutor-2][org.springframework.integration.samples.splitteraggregator.SearchA] This search will take 1000ms.
13:48:01.036 INFO  [searchRequestExecutor-1][org.springframework.integration.samples.splitteraggregator.SearchB] This search will take 1000ms.
Number of Search Results: 2

Credits

We would like to thank Christopher Hunt (@huntchr) for contributing this sample.


For help please take a look at the Spring Integration documentation:

http://www.springsource.org/spring-integration