What's in an EJB?
So far, you have been presented with a “black box” view of an EJB; it provides business functionality via an RMI remote interface, and it cooperates with its container to perform its duties. To understand, use, and ultimately write EJBs, you will need to know more in concrete terms about the Java programming artifacts that make up an EJB. In other words, what's in one?
There are four components to an EJB:
The remote interface— Defining the signatures of the business methods for the EJB
The home interface— Defining the signature of the methods associated with the bean lifecycle (creation, use and destruction)
The bean itself— A concrete Java class implementing the business and lifecycle method functionality
The deployment descriptor— ...
Get Sams Teach Yourself J2EE™ in 21 Days, 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.