Hi,
For stateless beans calling the isIdentical() method on the
ejb objects from the same home returns true, fine.
If the bean is deployed twice two homes will be created(say Home1 and Home2 ) and now i got the two ejb objects one from each of the home ( Home1 and Home2), now if i call the isIdentical() method on these ejb objects - i will get false. Is it true ?
One of my doubt is, What is meant by deploying the same bean twice?
Another question is take the below code, ( for local client)
Context ctx = new InitialContext();
AccountHome home1 = (AccountHome)ctx.lookup("java:comp/env/AccountRef");
Account acct1 = home1.create();
AccountHome home2 = (AccountHome)ctx.lookup("java:comp/env/AccountRef");
Account acct2 = home2.create();
Now --> acct1.isIdentical(acct2) -- Will return true or false.
Thanks in Advance,