edu.cmu.mse.vault.transaction
Class TransactionAgentSessionBean
java.lang.Object
edu.cmu.mse.vault.transaction.TransactionAgentSessionBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class TransactionAgentSessionBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionAgentSessionBean
public TransactionAgentSessionBean()
getTransactionHistory
public Message getTransactionHistory(MessageKey key,
int accountID)
throws VaultEntityCreateException,
UnexpectedMessageSequenceNumberException
- Throws:
VaultEntityCreateException
UnexpectedMessageSequenceNumberException
ejbActivate
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
- Specified by:
ejbActivate
in interface javax.ejb.SessionBean
- Throws:
javax.ejb.EJBException
java.rmi.RemoteException
ejbPassivate
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
- Specified by:
ejbPassivate
in interface javax.ejb.SessionBean
- Throws:
javax.ejb.EJBException
java.rmi.RemoteException
ejbRemove
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
- Specified by:
ejbRemove
in interface javax.ejb.SessionBean
- Throws:
javax.ejb.EJBException
java.rmi.RemoteException
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx)
throws javax.ejb.EJBException,
java.rmi.RemoteException
- Specified by:
setSessionContext
in interface javax.ejb.SessionBean
- Throws:
javax.ejb.EJBException
java.rmi.RemoteException
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException
- Default create method
- Throws:
javax.ejb.CreateException
getInitialContext
public static javax.naming.Context getInitialContext()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
createTransaction
public int createTransaction(Transaction transaction)
- Business method Calls the entity bean method to create a cust entity
bean.
isAlive
public boolean isAlive()
- Heartbeat method
- Returns: