The Java EE 5 Tutorial

When to Use Session Beans

In general, you should use a session bean if the following circumstances hold:

Stateful session beans are appropriate if any of the following conditions are true:

To improve performance, you might choose a stateless session bean if it has any of these traits: