The Local Client

Up to this point, it has been assumed that we are always dealing with a remote client. J2EE 1.3 introduces the concept of the local client for both session beans and entity beans.

The local client was introduced as a way to improve performance when the required EJB components are known to exist locally, running on the same Java Virtual Machine. When referring to the local client, there are several differences that apply:

  • Remote client becomes local client

  • Remote interface becomes local interface

  • Home interface becomes local Home interface

  • The objects that implement these two interfaces must be Java objects that are local to the client.

  • The arguments and results of all methods on these interfaces are now passed by reference instead ...

Get Developing Enterprise Java Applications with J2EE™ and UML 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.