public class BeanTxStatefulBean extends Object implements javax.ejb.SessionBean
| Modifier and Type | Field and Description |
|---|---|
String |
jndiDatabaseEntry |
| Constructor and Description |
|---|
BeanTxStatefulBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
ejbActivate()
The activate method is called when the instance is activated
from its "passive" state.
|
void |
ejbCreate(String name)
Maps to BasicStatefulHome.create
|
void |
ejbPassivate()
The passivate method is called before the instance enters
the "passive" state.
|
void |
ejbRemove()
A container invokes this method before it ends the life of the session
object.
|
Transaction |
getUserTransaction()
Maps to BasicStatefulObject.businessMethod
|
Transaction |
jndiUserTransaction() |
void |
openAccount(Account acct,
Boolean rollback) |
String |
remove(String arg) |
Account |
retreiveAccount(String ssn) |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Set the associated session context.
|
public final String jndiDatabaseEntry
public void ejbCreate(String name) throws javax.ejb.CreateException
name - javax.ejb.CreateExceptionBasicStatefulHome.createObject(java.lang.String)public Transaction getUserTransaction() throws RemoteException
RemoteExceptionBasicStatefulObject.businessMethod(java.lang.String)public Transaction jndiUserTransaction() throws RemoteException
RemoteExceptionpublic void openAccount(Account acct, Boolean rollback) throws RemoteException, RollbackException
RemoteExceptionRollbackExceptionpublic Account retreiveAccount(String ssn) throws RemoteException
RemoteExceptionpublic void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException,
RemoteException
setSessionContext in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbRemove()
throws javax.ejb.EJBException,
RemoteException
ejbRemove in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbActivate()
throws javax.ejb.EJBException,
RemoteException
ejbActivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionpublic void ejbPassivate()
throws javax.ejb.EJBException,
RemoteException
ejbPassivate in interface javax.ejb.SessionBeanjavax.ejb.EJBExceptionRemoteExceptionCopyright © 1999–2017 The Apache Software Foundation. All rights reserved.