|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cementj.base.DefaultSessionBean
public class DefaultSessionBean
Default implementation for session bean. This class will do the mundane mechanics of tracking context. It also provides default implementations for ejbRemove(), ejbActivate(), and ejbPassivate(), which most developers stump anyway.
Copyright: Delta Vortex Technologies, 2003.
| Field Summary | |
|---|---|
protected javax.ejb.SessionContext |
_sessionContext
|
| Constructor Summary | |
|---|---|
DefaultSessionBean()
|
|
| Method Summary | |
|---|---|
void |
ejbActivate()
Hollow implementation to satisfy SessionBean interface. |
void |
ejbPassivate()
Hollow implementation to satisfy SessionBean interface. |
void |
ejbRemove()
Hollow implementation to satisfy SessionBean interface. |
javax.ejb.SessionContext |
getSessionContext()
Returns the container-provided session context. |
javax.transaction.UserTransaction |
getUserTransaction()
Obtains the UserTransaction from the container-provided session context. |
void |
setSessionContext(javax.ejb.SessionContext context)
Records session context provided by the J2EE container. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected javax.ejb.SessionContext _sessionContext
| Constructor Detail |
|---|
public DefaultSessionBean()
| Method Detail |
|---|
public void setSessionContext(javax.ejb.SessionContext context)
throws javax.ejb.EJBException,
java.rmi.RemoteException
setSessionContext in interface javax.ejb.SessionBeanEJBException
RemoteException
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbRemove in interface javax.ejb.SessionBeanEJBException
RemoteException
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbActivate in interface javax.ejb.SessionBeanEJBException
RemoteException
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbPassivate in interface javax.ejb.SessionBeanEJBException
RemoteExceptionpublic javax.ejb.SessionContext getSessionContext()
public javax.transaction.UserTransaction getUserTransaction()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||