Multiple choice technology architecture

When should you use a Session Bean?

  1. At any time, only one client has access to the bean instance

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

  3. When the bean should represent a business entity

  4. The bean is not required to be persistent

  5. To synchronously receive JMS messages

  6. To asynchronously receive JMS messages

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

Stateful Session Beans maintain exclusive access for one client at a time, preserving conversational state. Session beans are not required to be persistent - they're transient business logic components. They can synchronously consume JMS messages using JMS APIs directly.