How Does It All Work?
Every EJB component class contains an interface called a home interface, which defines all the methods for creating, initializing, destroying, and optionally finding EJB instances within the application server container. The home interface is the contract between the EJB component class and the container. The container then defines the construction, destruction, and lookup of all EJB instances.
The EJB home interface extends the interface defined within the Sun specifications. The javax.ejb.EJBHome defines base-level functionality for a home interface. Every method in the interface must be RMI-compatible—in other words, they must be usable by the java.rmi package. The EJB home interface also defines all the create() methods ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access