Skip to content
This repository was archived by the owner on Jul 9, 2022. It is now read-only.

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.

Service Activator

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'.

Properties that could be set:

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)

Clone this wiki locally