O'Reilly logo

Java EE 7 Developer Handbook by Peter A. Pilgrim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The lifecycle of session EJBs

The EJB container is responsible for instantiating session EJB and removing them when the application starts and eventually is destroyed.

Lifecycle of stateless EJBs

The lifecycle for a stateless session EJB is fairly straightforward. We really can think of them as poolable beans, that is, components that are instantiated by the EJB container from collection of EJB instances. A system administrator can configure the size of the preallocation of each type of EJB in an application.

Note

This is completely an anathema to the current cloud provider configuration. Read more at cloud providers, auto scaling, and roles in Online Chapter, Moving Java EE.next to the Cloud.

A stateless session EJB has two states. The first state ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required