Chapter 5. EJB runtime context, dependency injection, and crosscutting logic
This chapter covers
- The basics of the EJBContext
- Using JNDI to look up EJBs and other resources
- The @EJB annotation
- EJBs in the application client and embedded containers
- The basics of AOP interceptors
In the previous two chapters we focused on developing session beans and message-driven beans (MDBs). In this chapter we build on that material and introduce some advanced concepts applicable to MDBs and session beans. We begin by discussing how containers provide services behind the scenes and how to access the runtime environment. We then move on to advanced uses of dependency injection, JNDI lookups, and EJB interceptors. As you’ll learn, EJB 3 largely relieves you ...
Get EJB 3 in Action, Second 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.