3.6. Principle of operation: session and entity EJBs

When the EJB is deployed, the server and the deployment tools inspect the factory interface and generate the appropriate (local or remote) home object. ‘Generation’ in this context means that the home object is produced as Java source code, which is then compiled into a Java class. The resulting home object class is then instantiated, and its name made available for clients to look up. The server also generates the EJB object from the remote interface, but does not necessarily instantiate it at this point. The implementation class is made available on the server, but this also is not instantiated.

So when an EJB is first deployed, and whenever the server is restarted, the client can expect ...

Get Applied Enterprise JavaBeans™ Technology 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.