Creation and Removal of EJBs

Creating instances of enterprise beans is much different that creating regular Java objects where all the objects reside in the same JVM. The container steps in and performs many system services when a bean is instantiated. In fact, the container might not need to even create a new bean, but rather pull an existing one from a bean pool or possibly from another user if resources are limited. To create a new bean, or really to obtain a local or remote reference to a new bean, you must go through the home interface. After a client has located an enterprise bean’s home interface, the client can get a reference to an instance of the enterprise bean by using one of the create methods on the home interface. For example, ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.