Fixes https://github.com/spring-projects/spring-integration-samples/issues/195 After some Java DSL modification to request an explicit subscriber for replies into a main flow from the `route()`, the `cafe-dsl` has stopped to work * Remove redundant `defaultOutputToParentFlow()` since it doesn't bring any value into a flow logic * add `bridge()` into all the route sub-flows as a thirds subscriber to make an explicit reply into a main flow after delay and logging
Cafe Demo: Spring Integration Java DSL
This sample demonstrates the classical Cafe Demo, but it is based on Spring Integration Java DSL and Spring Boot.
See the cafe project README.md for more details about the domain and the Cafe algorithm.
Run the Sample
-
You need Java 8 to run this sample, because it is based on Lambdas.
-
running the
org.springframework.integration.samples.dsl.cafe.lambda.Applicationclass from within STS (Right-click on Main class --> Run As --> Java Application) -
or from the command line:
$ gradlew :cafe-dsl:bootRun