-
Notifications
You must be signed in to change notification settings - Fork 33
Home
val messageFlow =
filter.using{payload: String => payload == "World"} -->
transform.using { payload: String => "Hello " + payload} -->
handle.using { payload: String => println(payload) }
messageFlow.send("World")
The output should be:
Hello World
Provide the value other than "World" to the 'send(..)' method and the Message will be discarded by the filter
[Introduction] (https://github.com/SpringSource/spring-integration-scala/wiki/Introduction)
[Getting Started] (https://github.com/SpringSource/spring-integration-scala/wiki/Getting-Started)
[DSL Reference] (https://github.com/SpringSource/spring-integration-scala/wiki/Reference)
[Development and Contributions] (https://github.com/SpringSource/spring-integration-scala/wiki/Development-and-Contributions)
[Roadmap] (https://github.com/SpringSource/spring-integration-scala/wiki/Current-Roadmap)
The Spring Integration Scala DSL project is released under version 2.0 of the Apache License.