| |
|
| java.lang.Object org.obe.server.j2ee.ejb.AbstractEJB org.obe.server.j2ee.ejb.AbstractSessionEJB
All known Subclasses: org.obe.server.j2ee.ejb.JMSMessageProducerEJB, org.obe.server.j2ee.ejb.TxHelperEJB, org.obe.server.j2ee.J2EEServerEJB,
AbstractSessionEJB | abstract public class AbstractSessionEJB extends AbstractEJB implements SessionBean(Code) | | An abstract base class for session bean implementations.
author: Adrian Price. |
Field Summary | |
protected SessionContext | _ctx |
Method Summary | |
public void | ejbActivate() This method is called when the container picks this session object
and assigns it to a specific session object. | public void | ejbPassivate() This method is called when the container diassociates the bean
from the session object identity and puts the instance back into
the pool of available instances. | public void | ejbRemove() | protected void | setRollbackOnly() Marks the current transaction for rollback only. | public void | setSessionContext(SessionContext ctx) Sets the context of the bean. |
_ctx | protected SessionContext _ctx(Code) | | |
ejbActivate | public void ejbActivate()(Code) | | This method is called when the container picks this session object
and assigns it to a specific session object. Insert code here to
acquire any additional resources that it needs when it is in the
ready state.
|
ejbPassivate | public void ejbPassivate()(Code) | | This method is called when the container diassociates the bean
from the session object identity and puts the instance back into
the pool of available instances. Insert code to release any
resources that should not be held while the instance is in the
pool.
|
ejbRemove | public void ejbRemove()(Code) | | |
setRollbackOnly | protected void setRollbackOnly()(Code) | | Marks the current transaction for rollback only. N.B. must only be
called when the EJB has a valid transactional context.
|
setSessionContext | public void setSessionContext(SessionContext ctx)(Code) | | Sets the context of the bean.
Parameters: ctx - The Bean's Context |
|
|
|