3.8. The EJB container and its proxies

In Java RMI, [10] the clients of a remote object did not call methods on the remote object directly. Instead, they call methods on a stub, which passes the method call information over the network to the ‘skeleton,’ which calls the method on the remote object. The EJB model extends this notion by introducing the idea of the EJB container as an additional element in the interaction. The container has two main functions:

[10] Here we are using the term ‘Java RMI’ to mean the specific form of RMI supported natively by the JDK; it does not mean ‘RMI done in Java,’ which could, of course, include EJB interactions.

  • It intercepts all method calls made by the client and carries out various actions (concerned with ...

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.