We're talking about REMOTE objects in EJB. equals() method is for comparing two objects in the same heap... but when u have to compare two remote objects... u hav to use isIdentical() method as it veifires if the two stub references refer to the same EJB...... further rules using this method on the session beans (stateful and statelss) and entity beans are different.Thanx
Why can't you just use the equals() method instead of isIdentical()? isn't that what equals() is for?
Profile Answers by krishna_darl Questions by krishna_darl
Questions by krishna_darl answers by krishna_darl