Remote Interface
When the client program is ready to execute a remote method from the EJB object, the object communicates to the remote implementation through the remote interface. This remote interface represents all the business methods defined within the EJB component. The remote interface is actually a delegate for the EJB component.
The EJB object and the EJB component are actually separate classes, but they implement the same interface. The client then sees the EJB object and EJB component as the same object. Although both the object and the component implement the same interface, they have completely different responsibilities. The EJB component runs on the server in an EJB container and implements all the business logic. The EJB objects ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access