| Prev | Next | J2EETM Developer's Guide
Session Beans |
isIdentical method:
bookCart = home.create("Bill Shakespeare");
videoCart = home.create("Lefty Lee");
. . .
if (bookCart.isIdentical(bookCart)) {
// true . . . }
if (bookCart.isIdentical(videoCart)) {
// false . . . }
Because stateless session beans have the same object identity, the isIdentical method always returns true when used to compare two such beans.