Chapter 16. Resource Connections

Dale Green

Both enterprise beans and Web components can access a wide variety of resources, including databases, 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 samples in this chapter are from enterprise beans, they will also work in Web components.

In This Chapter

JNDI Names and Resource References

deploytool Tips for Resource References

Database Connections for Enterprise Beans

Coded Connections

Connection Pooling

Mail Session Connections

Running the ConfirmerEJB Example

URL Connections

Running the HTMLReaderEJB ...

Get J2EE™ Tutorial, The 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.