Local Versus Remote EJB Clients

An EJB client is an object that needs to interact with an enterprise bean in order for the bean to perform some service on behalf of the client. This interaction is in the form of the client invoking operations on the bean’s component interface. The component interface of an enterprise bean defines the methods that are available for clients to invoke.

With earlier versions of the EJB specification, only invocations on a remote interface were defined. However, with the release of version 2.0, there are two types of EJB component interfaces, local and remote. Depending on your applications needs and requirements; you may choose to expose your enterprise beans to local clients, remote clients, or, in some cases, ...

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.