Chapter 28. Resource Connections

Java EE components can access a wide variety of resources, including databases, mail sessions, Java Message Service objects, and URLs. The Java EE 6 platform provides mechanisms that allow you to access all these resources in a similar manner. This chapter explains how to get connections to several types of resources.

The following topics are addressed here:

• “Resources and JNDI Naming” on page 529

• “DataSource Objects and Connection Pools” on page 530

• “Resource Injection” on page 531

• “Resource Adapters and Contracts” on page 534

• “Metadata Annotations” on page 538

• “Common Client Interface” on page 540

• “Further Information about Resources” on page 541

Resources and JNDI Naming

In a distributed application, ...

Get The Java EE 6 Tutorial: Basic Concepts, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.