Multiple choice technology architecture

Which statement is true about stateful session beans, but is NOT true about stateless session beans

  1. State can be cached but is not representative of the client state

  2. State can be cached but is representative of client state

  3. State is persistent

  4. State is cached first, and then persisted.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Stateful session beans maintain conversational state with specific clients across method invocations - the cached state represents that client's ongoing session. Stateless beans have NO affinity to clients - any instance can serve any client request, and any cached state is transient and not client-specific. Stateful beans are NOT about persistence.