> For the complete documentation index, see [llms.txt](https://bernardo.gitbook.io/development-docs-java/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bernardo.gitbook.io/development-docs-java/spring-integration/gateway.md).

# Gateway

The entry to an integration flow.

## Mapping a Service

```java
public interface EmployeeFacadeService {

   public Employee updateEmployee(final Employee employee);

}
```

```markup
<si:gateway id="employeeFlow"
  service-interface="com.service.EmployeeFacadeService"
  default-reply-channel="employeeOutputChannel">
  <si:method name="updateEmployee" request-channel="updateEmployeeChannel"/>
</si:gateway>
```

These operations may be extended with additional metadata:

```markup
<si:gateway id="employeeFlow"
  service-interface="com.service.EmployeeService "
  default-reply-channel="employeeOutputChannel">
  <si:method name="updateEmployee" request-channel="updateEmployeeChannel">
	 <si:header name="EVENT_TYPE" value="employeeChangeRequest" />
  </si:method>
</si:gateway>
```
