Implementing a Stateless Session Bean

Implementing a Session bean involves defining a class that implements javax.ejb.SessionBean and provides an implementation for the lifecycle methods of the SessionBean, implementations of each method in the home interface, and an implementation of each business method in the remote interface. Before looking in detail at how to do all this, you need to be comfortable with the details of the stateless Session bean lifecycle.

Stateless Session Bean Lifecycle

Stateless beans hold no state for any particular client, but they do have a lifecycle—and thus different states—imposed on them by the EJB architecture. Specifically, these are the interactions between the bean and the container in which it has been deployed. ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.