Which of the following is valid life cycle state for a Stateless Session Bean?
-
Does not exist
-
Pooled State
-
Passive
-
None
A
Correct answer
Explanation
Stateless Session Beans have two lifecycle states: 'Does Not Exist' and 'Method-Ready'. The 'Does Not Exist' state represents when the bean instance is not associated with any client and exists in the pool. When a client invokes a business method, the bean transitions to the Method-Ready state. Unlike Stateful Session Beans, Stateless Session Beans do not have a 'Passive' state for passivation. The 'Pooled State' terminology is sometimes used colloquially but 'Does Not Exist' is the formal specification term.