Newbiew Question from Chp 2 of Ed Roman's EJB Book
843830Mar 14 2005 — edited Mar 15 2005The 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?