AbstractSessionBean¶
-
public class
AbstractSessionBean
implements SessionBean¶ The AbstractSessionBean class is an abstract class which implements the methods required for a Session Bean, except the ejbCreate(...) methods and the business methods.
Author: Hugo Y. K. Lam
Fields¶
context¶
-
protected SessionContext
context
¶ The session context.
Constructors¶
Methods¶
ejbActivate¶
-
public void
ejbActivate
()¶ A container invokes this method when the instance is activated from its “passive” state.
See also:
javax.ejb.SessionBean.ejbActivate()
ejbCreate¶
-
public void
ejbCreate
()¶ A container invokes this method when the instance is created. This is a default and mandatory creator in a stateless session bean.
See also:
javax.ejb.SessionBean.ejbActivate()
ejbPassivate¶
-
public void
ejbPassivate
()¶ A container invokes this method before the instance enters the “passive” state.
See also:
javax.ejb.SessionBean.ejbPassivate()
ejbRemove¶
-
public void
ejbRemove
()¶ A container invokes this method before it ends the life of the session object.
See also:
javax.ejb.SessionBean.ejbRemove()
setSessionContext¶
-
public void
setSessionContext
(SessionContext ctx)¶ Set the associated session context.
See also:
javax.ejb.SessionBean.setSessionContext(javax.ejb.SessionContext)