Why can't you just use the equals() method instead of isIdentical()? isn't that what equals() is for?

Questions by krishna_darl   answers by krishna_darl

Showing Answers 1 - 1 of 1 Answers

tarunarora

  • Jul 14th, 2006
 

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.