The J2EETM Tutorial
Home
TOC
PREV TOC NEXT Search
Feedback

Resource Connections

by Dale Green

Both enterprise beans and web components can access a wide variety of resources, including database, mail sessions, Java Message Service objects, and URLs. The J2EE platform provides mechanisms that allow you to access all of these resources in a similar manner. This chapter describes how to get connections to several types of resources. Although the code examples in this chapter are from enterprise beans, they will also work in web components.

JNDI Names and Resource References
Definitions
Specifying a Resource Reference
Mapping a Resource Reference to a JNDI Name
Database Connections for Enterprise Beans
Coded Connections
Container-Managed Connections
Connection Pooling
Mail Session Connections
Tips for Running the ConfirmerEJB Example
URL Connections
Tips for Running the HTMLReaderEJB Example
Home
TOC
PREV TOC NEXT Search
Feedback