user manual

Chapter 11: Writing enterprise bean clients 101
Chapter
11
Chapter 11Writing enterprise bean clients
Important For documentation updates, go to www.borland.com/techpubs/bes.
Client view of an enterprise bean
A client of an enterprise bean is an application--a stand-alone application, an
application client container, servlet, or applet--or another enterprise bean. In
all cases, the client must do the following things to use an enterprise bean:
Locate the bean's home interface. The EJB specification states that the
client should use the JNDI (Java Naming and Directory Interface) API to
locate home interfaces.
Obtain a reference to an enterprise bean object's remote interface. This
involves using methods defined on the bean's home interface. You can
either create a session bean, or you can create or find an entity bean.
Invoke one or more methods defined by the enterprise bean. A client does
not directly invoke the methods defined by the enterprise bean. Instead, the
client invokes the methods on the enterprise bean object's remote
interface. The methods defined in the remote interface are the methods that
the enterprise bean has exposed to clients.