Hello Tejas,
This is what the spec has to say....
The following example illustrates the use of the isIdentical method for a stateful session object.
FooHome fooHome = ...; // obtain home of a stateful session bean
Foo foo1 = fooHome.create(...);
Foo foo2 = fooHome.create(...);
if (foo1.isIdentical(foo1)) {// this
test must return true
...
}
if (foo1.isIdentical(foo2)) {// this test must return false
...
}
Is the second stub (object) just a simple copy of the first? In that it will return TRUE.. no?
Regards,
tiro