# Integration Endpoints

## Endpoint Quick Reference Table

As discussed in the earlier sections, Spring Integration provides a number of endpoints used to interface with external systems, file systems, and others.

For transparent dependency management Spring Integration provides a bill-of-materials POM to be imported into the Maven configuration:

```
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.integration</groupId>
            <artifactId>spring-integration-bom</artifactId>
            <version>5.5.9</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
```

To recap:

* Inbound channel adapters are used for one-way integration to bring data into the messaging application.

* Outbound channel adapters are used for one-way integration to send data out of the messaging application.

* Inbound gateways are used for a bidirectional integration flow, where some other system invokes the messaging application and receives a reply.

* Outbound Gateways are used for a bidirectional integration flow, where the messaging application invokes some external service or entity and expects a result.

The following table summarizes the various endpoints with quick links to the appropriate chapter.

|     Module     |                                                                                                                                                            Inbound Adapter                                                                                                                                                             |                                                                                                                                                               Outbound Adapter                                                                                                                                                                |                            Inbound Gateway                            |                                                                 Outbound Gateway                                                                  |
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
|    **AMQP**    |                                                                                                                                  [Inbound Channel Adapter](./amqp.html#amqp-inbound-channel-adapter)                                                                                                                                   |                                                                                                                                     [Outbound Channel Adapter](./amqp.html#amqp-outbound-channel-adapter)                                                                                                                                     |          [Inbound Gateway](./amqp.html#amqp-inbound-gateway)          |                                               [Outbound Gateway](./amqp.html#amqp-outbound-gateway)                                               |
|   **Events**   |                                                                                                                                  [Receiving Spring Application Events](./event.html#appevent-inbound)                                                                                                                                  |                                                                                                                                      [Sending Spring Application Events](./event.html#appevent-outbound)                                                                                                                                      |                                   N                                   |                                                                         N                                                                         |
|    **Feed**    |                                                                                                                                [Feed Inbound Channel Adapter](./feed.html#feed-inbound-channel-adapter)                                                                                                                                |                                                                                                                                                                       N                                                                                                                                                                       |                                   N                                   |                                                                         N                                                                         |
|    **File**    |                                                                                                                       [Reading Files](./file.html#file-reading) and ['tail’ing Files](./file.html#file-tailing)                                                                                                                        |                                                                                                                                                   [Writing files](./file.html#file-writing)                                                                                                                                                   |                                   N                                   |                                                     [Writing files](./file.html#file-writing)                                                     |
|   **FTP(S)**   |                                                                                                                                         [FTP Inbound Channel Adapter](./ftp.html#ftp-inbound)                                                                                                                                          |                                                                                                                                            [FTP Outbound Channel Adapter](./ftp.html#ftp-outbound)                                                                                                                                            |                                   N                                   |                                              [FTP Outbound Gateway](./ftp.html#ftp-outbound-gateway)                                              |
|  **Gemfire**   |                                                                                                  [Inbound Channel Adapter](./gemfire.html#gemfire-inbound) and [Continuous Query Inbound Channel Adapter](./gemfire.html#gemfire-cq)                                                                                                   |                                                                                                                                          [Outbound Channel Adapter](./gemfire.html#gemfire-outbound)                                                                                                                                          |                                   N                                   |                                                                         N                                                                         |
|    **HTTP**    |                                                                                                                                          [HTTP Namespace Support](./http.html#http-namespace)                                                                                                                                          |                                                                                                                                             [HTTP Namespace Support](./http.html#http-namespace)                                                                                                                                              |          [Http Inbound Components](./http.html#http-inbound)          |                                               [HTTP Outbound Components](./http.html#http-outbound)                                               |
|    **JDBC**    |                                                                                [Inbound Channel Adapter](./jdbc.html#jdbc-inbound-channel-adapter) and [Stored Procedure Inbound Channel Adapter](./jdbc.html#stored-procedure-inbound-channel-adapter)                                                                                |                                                                                 [Outbound Channel Adapter](./jdbc.html#jdbc-outbound-channel-adapter) and [Stored Procedure Outbound Channel Adapter](./jdbc.html#stored-procedure-outbound-channel-adapter)                                                                                  |                                   N                                   |   [Outbound Gateway](./jdbc.html#jdbc-outbound-gateway) and [Stored Procedure Outbound Gateway](./jdbc.html#stored-procedure-outbound-gateway)    |
|    **JMS**     |                                                                                         [Inbound Channel Adapter](./jms.html#jms-inbound-channel-adapter) and [Message-driven Channel Adapter](./jms.html#jms-message-driven-channel-adapter)                                                                                          |                                                                                                                                      [Outbound Channel Adapter](./jms.html#jms-outbound-channel-adapter)                                                                                                                                      |           [Inbound Gateway](./jms.html#jms-inbound-gateway)           |                                                [Outbound Gateway](./jms.html#jms-outbound-gateway)                                                |
|    **JMX**     |                                 [Notification-listening Channel Adapter](./jmx.html#jmx-notification-listening-channel-adapter) and [Attribute-polling Channel Adapter](./jmx.html#jmx-attribute-polling-channel-adapter) and [Tree-polling Channel Adapter](./jmx.html#tree-polling-channel-adapter)                                  |                                                                         [Notification-publishing Channel Adapter](./jmx.html#jmx-notification-publishing-channel-adapter) and [Operation-invoking Channel Adapter](./jmx.html#jmx-operation-invoking-channel-adapter)                                                                         |                                   N                                   |                             [Operation-invoking Outbound Gateway](./jmx.html#jmx-operation-invoking-outbound-gateway)                             |
|    **JPA**     |                                                                                                                                   [Inbound Channel Adapter](./jpa.html#jpa-inbound-channel-adapter)                                                                                                                                    |                                                                                                                                      [Outbound Channel Adapter](./jpa.html#jpa-outbound-channel-adapter)                                                                                                                                      |                                   N                                   |[Updating Outbound Gateway](./jpa.html#jpa-updating-outbound-gateway) and [Retrieving Outbound Gateway](./jpa.html#jpa-retrieving-outbound-gateway)|
|**Apache Kafka**|                                                                                                    [Message Driven Channel Adapter](./kafka.html#kafka-inbound) and [Inbound Channel Adapter](./kafka.html#kafka-inbound-pollable)                                                                                                     |                                                                                                                                            [Outbound Channel Adapter](./kafka.html#kafka-outbound)                                                                                                                                            |         [Inbound Gateway](./kafka.html#kafka-inbound-gateway)         |                                              [Outbound Gateway](./kafka.html#kafka-outbound-gateway)                                              |
|    **Mail**    |                                                                                                                                       [Mail-receiving Channel Adapter](./mail.html#mail-inbound)                                                                                                                                       |                                                                                                                                           [Mail-sending Channel Adapter](./mail.html#mail-outbound)                                                                                                                                           |                                   N                                   |                                                                         N                                                                         |
|  **MongoDB**   |                                                                                                                           [MongoDB Inbound Channel Adapter](./mongodb.html#mongodb-inbound-channel-adapter)                                                                                                                            |                                                                                                                              [MongoDB Outbound Channel Adapter](./mongodb.html#mongodb-outbound-channel-adapter)                                                                                                                              |                                   N                                   |                                                                         N                                                                         |
|    **MQTT**    |                                                                                                                                  [Inbound (Message-driven) Channel Adapter](./mqtt.html#mqtt-inbound)                                                                                                                                  |                                                                                                                                             [Outbound Channel Adapter](./mqtt.html#mqtt-outbound)                                                                                                                                             |                                   N                                   |                                                                         N                                                                         |
|   **R2DBC**    |                                                                                                                              [R2DBC Inbound Channel Adapter](./r2dbc.html#r2dbc-inbound-channel-adapter)                                                                                                                               |                                                                                                                                 [R2DBC Outbound Channel Adapter](./r2dbc.html#r2dbc-outbound-channel-adapter)                                                                                                                                 |                                   N                                   |                                                                         N                                                                         |
|   **Redis**    |[Redis Inbound Channel Adapter](./redis.html#redis-inbound-channel-adapter), [Redis Queue Inbound Channel Adapter](./redis.html#redis-queue-inbound-channel-adapter), [Redis Store Inbound Channel Adapter](./redis.html#redis-store-inbound-channel-adapter), [Redis Stream Inbound Channel Adapter](./redis.html#redis-stream-inbound)|[Redis Outbound Channel Adapter](./redis.html#redis-outbound-channel-adapter), [Redis Queue Outbound Channel Adapter](./redis.html#redis-queue-outbound-channel-adapter), [RedisStore Outbound Channel Adapter](./redis.html#redis-store-outbound-channel-adapter), [Redis Stream Outbound Channel Adapter](./redis.html#redis-stream-outbound)|[Redis Queue Inbound Gateway](./redis.html#redis-queue-inbound-gateway)|[Redis Outbound Command Gateway](./redis.html#redis-outbound-gateway) and [Redis Queue Outbound Gateway](./redis.html#redis-queue-outbound-gateway)|
|  **Resource**  |                                                                                                                          [Resource Inbound Channel Adapter](./resource.html#resource-inbound-channel-adapter)                                                                                                                          |                                                                                                                                                                       N                                                                                                                                                                       |                                   N                                   |                                                                         N                                                                         |
|    **RMI**     |                                                                                                                                                                   N                                                                                                                                                                    |                                                                                                                                                                       N                                                                                                                                                                       |                 [Inbound RMI](./rmi.html#rmi-inbound)                 |                                                      [Outbound RMI](./rmi.html#rmi-outbound)                                                      |
|  **RSocket**   |                                                                                                                                                                   N                                                                                                                                                                    |                                                                                                                                                                       N                                                                                                                                                                       |       [RSocket Inbound Gateway](./rsocket.html#rsocket-inbound)       |                                            [RSocket Outbound Gateway](./rsocket.html#rsocket-outbound)                                            |
|    **SFTP**    |                                                                                                                                        [SFTP Inbound Channel Adapter](./sftp.html#sftp-inbound)                                                                                                                                        |                                                                                                                                          [SFTP Outbound Channel Adapter](./sftp.html#sftp-outbound)                                                                                                                                           |                                   N                                   |                                            [SFTP Outbound Gateway](./sftp.html#sftp-outbound-gateway)                                             |
|   **STOMP**    |                                                                                                                                  [STOMP Inbound Channel Adapter](./stomp.html#stomp-inbound-adapter)                                                                                                                                   |                                                                                                                                     [STOMP Outbound Channel Adapter](./stomp.html#stomp-outbound-adapter)                                                                                                                                     |                                   N                                   |                                                                         N                                                                         |
|   **Stream**   |                                                                                                                                          [Reading from Streams](./stream.html#stream-reading)                                                                                                                                          |                                                                                                                                              [Writing to Streams](./stream.html#stream-writing)                                                                                                                                               |                                   N                                   |                                                                         N                                                                         |
|   **Syslog**   |                                                                                                                                 [Syslog Inbound Channel Adapter](./syslog.html#syslog-inbound-adapter)                                                                                                                                 |                                                                                                                                                                       N                                                                                                                                                                       |                                   N                                   |                                                                         N                                                                         |
|    **TCP**     |                                                                                                                                                 [TCP Adapters](./ip.html#tcp-adapters)                                                                                                                                                 |                                                                                                                                                    [TCP Adapters](./ip.html#tcp-adapters)                                                                                                                                                     |                [TCP Gateways](./ip.html#tcp-gateways)                 |                                                      [TCP Gateways](./ip.html#tcp-gateways)                                                       |
|    **UDP**     |                                                                                                                                                 [UDP Adapters](./ip.html#udp-adapters)                                                                                                                                                 |                                                                                                                                                    [UDP Adapters](./ip.html#udp-adapters)                                                                                                                                                     |                                   N                                   |                                                                         N                                                                         |
|  **WebFlux**   |                                                                                                                                   [WebFlux Inbound Channel Adapter](./webflux.html#webflux-inbound)                                                                                                                                    |                                                                                                                                      [WebFlux Outbound Channel Adapter](./webflux.html#webflux-outbound)                                                                                                                                      |       [Inbound WebFlux Gateway](./webflux.html#webflux-inbound)       |                                            [Outbound WebFlux Gateway](./webflux.html#webflux-outbound)                                            |
|**Web Services**|                                                                                                                                                                   N                                                                                                                                                                    |                                                                                                                                                                       N                                                                                                                                                                       |     [Inbound Web Service Gateways](./ws.html#webservices-inbound)     |                                          [Outbound Web Service Gateways](./ws.html#webservices-outbound)                                          |
|**Web Sockets** |                                                                                                                           [WebSocket Inbound Channel Adapter](./web-sockets.html#web-socket-inbound-adapter)                                                                                                                           |                                                                                                                             [WebSocket Outbound Channel Adapter](./web-sockets.html#web-socket-outbound-adapter)                                                                                                                              |                                   N                                   |                                                                         N                                                                         |
|    **XMPP**    |                                                                                                                       [XMPP Messages](./xmpp.html#xmpp-messages) and [XMPP Presence](./xmpp.html#xmpp-presence)                                                                                                                        |                                                                                                                           [XMPP Messages](./xmpp.html#xmpp-messages) and [XMPP Presence](./xmpp.html#xmpp-presence)                                                                                                                           |                                   N                                   |                                                                         N                                                                         |
|   **ZeroMQ**   |                                                                                                                             [ZeroMQ Inbound Channel Adapter](./zeromq.html#zeromq-inbound-channel-adapter)                                                                                                                             |                                                                                                                               [ZeroMQ outbound Channel Adapter](./zeromq.html#zeromq-outbound-channel-adapter)                                                                                                                                |                                   N                                   |                                                                         N                                                                         |

In addition, as discussed in [Core Messaging](./core.html#spring-integration-core-messaging), Spring Integration provides endpoints for interfacing with Plain Old Java Objects (POJOs).
As discussed in [Channel Adapter](./channel-adapter.html#channel-adapter), the `<int:inbound-channel-adapter>` element lets you poll a Java method for data.
The `<int:outbound-channel-adapter>` element lets you send data to a `void` method.
As discussed in [Messaging Gateways](./gateway.html#gateway), the `<int:gateway>` element lets any Java program invoke a messaging flow.
Each of these works without requiring any source-level dependencies on Spring Integration.
The equivalent of an outbound gateway in this context is using a service activator (see [Service Activator](./service-activator.html#service-activator)) to invoke a method that returns an `Object` of some kind.

Starting with version `5.2.2`, all the inbound gateways can be configured with an `errorOnTimeout` boolean flag to throw a `MessageTimeoutException` when the downstream flow doesn’t return a reply during the reply timeout.
The timer is not started until the thread returns control to the gateway, so usually it is only useful when the downstream flow is asynchronous or it stops because of a `null` return from some handler, e.g. [filter](./filter.html#filter).
Such an exception can be handled on the `errorChannel` flow, e.g. producing a compensation reply for requesting client.