The EJB Distributed Object Model

Enterprise JavaBeans are not JavaBeans; they simply have a similar name because, like JavaBeans, they are components. But EJBs are not merely components—they are distributed components that interoperate by means of proxies. This means that they are not called directly like JavaBeans, but indirectly, through a somewhat complicated mechanism, in order to provide location transparency. Location transparency means that a client does not need to know or explicitly determine the location of a remote object.

From the point of view of the client application, the following steps are required to call an EJB method:

  • Make a call to JNDI to obtain a home object.
  • Call the home object to obtain the EJB object.
  • Call the EJB object's ...

Get Java™ Oracle® Database Development 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.