|Oracle8i Enterprise JavaBeans Developer's Guide and Reference
Release 3 (8.1.7)
Part Number A83725-01
An Enterprise JavaBean has two client interfaces: a remote interface and a home interface. The remote interface specifies the methods that the object's clients can invoke; the home interface defines how clients can create the object, which returns a reference to the object. The client uses both of these interfaces when invoking a method on a bean.
The events that occur when a client invokes a method within a bean are explained in the following diagram and steps:
The numbers in the figure correspond to the following numbered steps:
During the JNDI lookup, the database creates a session for the server-side of the request.
createon home interface X.
The bean instance is created within the session that was established on the JNDI lookup.
The object reference of remote interface X is returned to client 1.
removeon remote interface X when it is done with the bean instance. This destroys the remote interface and the bean instance.