Interface to be implemented by Session Beans that want to expose important state to cooperating classes.
Base class for Spring-based EJB 2.x beans.
Convenient base class for JMS-based EJB 2.x MDBs.
Convenient base class for EJB 2.x MDBs.
Base class for Spring-based EJB 2.x session beans.
Convenient base class for EJB 2.x stateful session beans (SFSBs).
Convenient base class for EJB 2.x stateless session beans (SLSBs), minimizing the work involved in implementing an SLSB and preventing common errors.
Base classes to make implementing EJB 2.x beans simpler and less error-prone, as well as guaranteeing a Spring BeanFactory is available to such EJBs. This promotes good practice, with EJB services used for transaction management, thread management, and (possibly) remoting, while business logic is implemented in easily testable POJOs.
In this model, the EJB is a facade, with as many POJO helpers behind the BeanFactory as required.
Note that the default behavior is to look for an EJB enviroment variable
ejb/BeanFactoryPath that specifies the
location on the classpath of an XML bean factory definition
file (such as
If this JNDI key is missing, your EJB subclass won't successfully
initialize in the container.
Check out the
package for equivalent support for the EJB 3 component model,
providing annotation-based autowiring using an EJB 3 interceptor.