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 Mar 4, 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.using { m: Message[_] => m }

If you need to add any extra properties to the Service Activator you may do so using where method which accepts named parameters.

For example:

val simpleServiceA = handle.using { m: Message[_] => m } where(name="myService") //infix

val simpleServiceB = handle.using { m: Message[_] => m }.where(name="myService") 

will produce a Service Activator named 'myService'.

Properties that could be set:

name - component name

Service Activator's handle.using method signature is:

def using(function:Function1[_,_])

[Back to Core Messaging Patterns] (https://github.com/SpringSource/spring-integration-scala/wiki/Core-Messaging-Patterns)

Clone this wiki locally