This repository was archived by the owner on Jul 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Service activator
olegz edited this page Jun 5, 2012
·
10 revisions
EIP reference for Service Activator can be found here - http://www.eaipatterns.com/MessagingAdapter.html
Continuation from Service Activator could be expressed using '-->' operator.
Root DSL element for Service Activator is handle
val simpleService = handle { m: Message[_] => m }
If you need to add any extra properties to the Service Activator you may do so using additionalAttributes method which accepts named parameters.
For example:
val simpleServiceA = handle { m: Message[_] => m } additionalAttributes(name="myService") //infix
val simpleServiceB = handle { m: Message[_] => m }.additionalAttributes(name="myService")
will produce a Service Activator named 'myService'.
name - component name
Service Activator's handle.apply method signature is:
def apply(function:Function1[_,_])
[Back to Core Messaging Patterns] (https://github.com/SpringSource/spring-integration-dsl-scala/wiki/Core-Messaging-Patterns)