Here is one question from
SCEA Exam simulator of whizlab which I think is confusing
what happens when the remove() method is called on the Home interface of
an entity bean ?
A. The remote interface is invalidated
B. The bean instance is destroyed
c. The bean instance is passivated
d. The data represented by the bean instance is deleted from the database.
E. The bean instance moves from pooled state to ready state.
I think correct answer should be A,C and d but as per whizlab simulator I am using A and d are
only correct answers. Reason they have given why c is incorrect because
container passivate the bean instance whenever required(for memory
management). It is not a consequence of the remove() method though.
which is true in most cases but in this case after calling remove() method when remote interface/stub is invalidated and bean instance goes back to pooled state and it is already passivated . I don't see any reason why passivation is going to be container dependent here. So I think c should be also correct in this case.
I would appreciate further comment to clarify this.
[ August 24, 2008: Message edited by: yogesh shekhawat ]