# The Java EE 7 Tutorial

# 53 The Resource Adapter Examples

This chapter describes two examples that demonstrate how to use resource adapters in Java EE applications and how to implement simple resource adapters. The `trading` example shows how to use a simple custom client interface to connect to an EIS from a web application. The resource adapter in this example implements the outbound contract and the custom client interface. The `traffic` example shows how to use a message-driven bean (MDB) to process traffic information updates from an EIS. The resource adapter in this example implements the inbound and work management contracts.

The following topics are addressed here:

- The trading Example

- The traffic Example