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