when they say component interface, they mean a reference to your EJBObject, since u cannot have a reference to your bean.
When they say Component = Business = EJBObject for the Business part, they are referring to the component interface b/c it is the only interface that can have business methods (for Session Beans).
The "remote interface" is different from the component interface. Your "remote component interface" extends the EJBObject interface, which then extends the Remote interface.
However, if u are talking about if the remote Component interface is the same as the component interface, yes it is (in a remote view) As you will see later, we are allowed to have local componet interfaces also.
In EJB 1.0 and 1.1 there were no local beans. When SUN specified them, there were only home interface (javax.ejb.EJBHome) e remote interface (javax.ejb.EJBObject). With EJB2.0, they created local beans. For home interface, they specified the local home interface (javax.ejb.EJBLocalHome) but it would be awful if the another interface had called local remote interface. So SUN started referencing the both remote and local interfaces to component interface.
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
posted 15 years ago
Thanks Ryan & Vinicius for the explanations.
I didnt know that Component Interface can be local & remote and I thought it was always Remote.
I will have to read thru the part that differentiates between local & remote component interface and Remote interface.
Manzoor<br />SCJP<br />ICSE<br />ICS
Honk if you love justice! And honk twice for tiny ads!
Devious Experiments for a Truly Passive Greenhouse!