Multiple choice technology architecture

When should you use a Stateful Session Bean?

  1. When fetching frequently used read-only data.

  2. If you need to manage the workflow or several EJBs.

  3. At any time, multiple clients can have access to the bean instance.

  4. When the bean should represent a business entity.

  5. The bean needs to hold data about the client across multiple invocations.

  6. To asynchronously receive JMS messages.

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

Stateful Session Beans maintain conversational state with a specific client across multiple method invocations. This makes them ideal for workflow management scenarios and representing business processes like shopping carts. The bean holds client-specific data throughout the interaction.