Do we need to use isIdentical() for Local Interfaces or isEqual() would serve the purpose.

Showing Answers 1 - 2 of 2 Answers

Tamilselvan

  • Sep 15th, 2006
 

Answer :

I this may exact :

isIdentical method only we should use in remote interface of session bean.

isIdentical - it checks whether two session bean instances are reff to the same session bean or not

isIdentical - also it checks whether two EJBObject same or not

  Was this answer useful?  Yes

Sri

  • Oct 11th, 2006
 

Yes ...

we need to use isIdentical() for Local Intefaces.

equals() compares two objects on the same heap, whereas isIdentical() compares two remote objects.

The results of equals() and isIdentical() is different for local interfaces.

  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.

 

Related Answered Questions

 

Related Open Questions