Among the following, which are the types of session bean
-
stateless
-
statefull
-
BMP
-
CMP
Reveal answer
Fill a bubble to check yourself
A,B
Correct answer
Explanation
Session beans are categorized into exactly two types: stateless session beans (no conversational state maintained between calls, can be pooled) and stateful session beans (maintain client-specific state across method invocations). BMP (Bean-Managed Persistence) and CMP (Container-Managed Persistence) are persistence mechanisms for entity beans, not session bean types.
AI explanation
Session beans are divided into stateless (no conversational state retained between calls) and stateful (retain client-specific state across method invocations) types. BMP and CMP (bean-managed and container-managed persistence) are instead concepts related to entity beans, not session bean types.