Yes you can compare Primary key class using equals method (if primary key class override equals and hashCode) for
testing on entity bean has same value.
but isIdentical method is locate on EJBObject or EJBLocalObject.
You can use isIdentical for session bean or entity bean but if you use primary key equals method you can use only entity bean.
hope this help.
Weerawit<br />SCJP 1.4, SCWCD 1.2, SCWCD 1.4, SCBCD 1.3, SCBCD 5.0, SCMAD 1.0, SCJA 1.0, SCDJWS, SCJD, SCEA, SCDJWS 1.5