Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Newbiew Question from Chp 2 of Ed Roman's EJB Book

843830Mar 14 2005 — edited Mar 15 2005
The book says first talk about the EJB Object which is like the request interceptor which intercepts requests from the client and a surrogate object which knows how to communicate and take care of middleware issues. They also replicate the and expose every method that bean exposes.

Then it say that since the EJB Object is container specific it knows about the beans methods thru the Remote Interface.

Then the Remote Interface is derived also from javax.ejb.EJBObject.

The worst part is now it says that when the client code wants to work with the bean it calls the Remote Interface.

Why do they have to have EJBObject implementation for remote interface. They are confusing things... or why didnt they call the EJB Object (request interceptor) something else in the first place?

So the client communicates with the EJB Object first or the Remote INterface which implements EJBObject ?

Can someone please explain this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2005
Added on Mar 14 2005
5 comments
105 views