Originally posted by Raja Sagar Panamgipalli:
Guys plz clarify the below question....
Given the client code (accessing stateless session bean),
The isIdentical(EJBObject otherEJBObject) and isIdentical(EJBLocalObject otherEJBLocalObject) methods
returns true when,
Answer: a. foo1.isIdentical(foo1) is called
b. "foo1.isIdentical(foo1) is called" and "
foo1.isIdentical(foo2) is called"
c. foo1.isIdentical(foo2) is called
i think 'a' is the right answer...is there a possibility that the container assigns the same EJBObject to foo1,foo2 both .
All session objects of the same stateless session bean within the same home have the same object identity, which is assigned by the container.
If a stateless session bean is deployed multiple times (each deployment results in the creation of a distinct home), session objects from different homes will have a different identity.