You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2022. It is now read-only.
var integrationContext = SpringIntegrationContext()
val inputChannel = channel("inputChannel")
integrationContext <= {
inputChannel >>
activate("myService"){m:Message[String] => {println(m.getPayload)}}
}
integrationContext.init
inputChannel.send(new GenericMessage("==> Hello from Scala"))
In the above example ServiceActivator is provided with Scala function which simply prints the payload of the Message. You can also use Spring's Expression Language (SpEL). The equivalent Service Activator configuration would look like this: