posted 19 years ago
Hey Rajnish
Thanx for your response. I am still not getting this. When we say that the home object stub reference is not the same as the home interface which we want to cast to because of the IIOP wire protocol embellishes that object & hence narrowing is required.
So to my understanding the same rule even will even apply for an EJBObject stub reference. Even the EJBObject retrieved will pass through the same IIOP wire protocol. So how come that is exempt from narrowing.
When you say here
***********************
Where as in case of the EJBObject u dont need a narrow as u r already aware what u will get back i.e a object of the type of yr Remote Interface and not just java.lang.Object.
************************
even in case of EJBHome we know that the object reference we get back is a kind of our Remote Home interface but thats not the case as IIOP is in picture. So the same rule should be applicable to teh EJBObject reference also
Kindly ellaborate
Bye
Manish