concept stateful singleton session bean in category ejb

appears as: stateful singleton session bes
EJB 3 in Action, Second Edition

This is an excerpt from Manning's book EJB 3 in Action, Second Edition.

3.4.8. Using stateful singleton session beans effectively

Stateful singleton session beans are an incredibly useful feature of EJB 3.1. Before you run off and put them to use, there are some important things to remember about them. First, because there’s only one instance, they can be a performance bottleneck if they’re used incorrectly. Second, using container-managed concurrency doesn’t absolve you from configuring the concurrency behavior. Just as garbage collection doesn’t free you from managing memory (RAM isn’t limitless), container-managed concurrency isn’t a magical solution to a hard problem. Third, there are some caveats to creating a startup singleton. Finally, exception handling with singleton beans is a bit different.