Services

Activator

Maps a channel to a method, sending the channel's content as argument.

public interface EmployeeService {

   public Employee update(final Employee employee);

}

An instance of the service should be initialized into Spring's context.

<si:service-activator
   input-channel="updateEmployeeChannel"
   output-channel="employeeOutputChannel"
   ref="employeeService" method="update">
</si:service-activator>

Header Fields as Arguments

public interface EmployeeService {

   public Employee update(final Employee employee,
      @Header(value = "EVENT_TYPE") final String event);

}

Last updated