The client calls business methods on the stub through the Remote business interface

Remember, as far as the client’s concerned, he’s calling methods on The Real Thing. The actual Remote object. The thing that has the methods he wants to call.

The only thing reminding the client that he isn’t calling methods directly on the Remote object is the RemoteExceptions he has to deal with.

image with no caption
image with no caption

Get Head First EJB 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.