When to use Stateful session bean over Stateless session bean?

First, you have to understand how the beans are created and handled on the server. For stateless session beans the server can maintain a variable amount of instances in a pool. Each time a client requests such a stateless bean (e.g. through a method) a random instance is chosen to serve that request. That means … Read more