This is incorrect. As I read in some test that all the references to the home are always equal. I think by that they mean that all references of a home under one JNDI name are same always. So there is no method explicitly used to comare them. Not isIdentical... not even equals().
There is only one Home for each bean type. So an isIdentical method for the home would be ludicrous. I meant to ask whether this remark in the book was intentional or a mistake. As far as I can see, it's a mistake, but then again, I'm just starting on the topic.
hi, What I understood from the book is that you might have two references to home objects(stubs). YOU might got them in different ways. In this case, you can use isIdendical to check weather the two references refere to the same home or not. I am new to EJB, any EJB guru corect me if I am wrong.
SCJD 1.4<br />SCJP 1.4<br />-----------------------------------<br />"With regard to excellence, it is not enough to know, but we must try to have and use it.<br />" Aristotle
Just as Geert indicated, isIdentical() method is only in the component interface. Thus, isIdentical() cannot be used to verify two homes.
There are no dumb questions... Suppose a client gets two component interfaces from a method arguments and wants to verify whether the homes of these two components are identical.
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad: