edu.cmu.mse.vault.customer
Class CustomerAgentSessionBean

java.lang.Object
  extended byedu.cmu.mse.vault.customer.CustomerAgentSessionBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class CustomerAgentSessionBean
extends java.lang.Object
implements javax.ejb.SessionBean

See Also:
Serialized Form

Constructor Summary
CustomerAgentSessionBean()
           
 
Method Summary
 Message createCustomer(MessageKey key, Customer customer)
          Business method Calls the entity bean method to create a cust entity bean.
 Message editCustomer(MessageKey key, int custId, Customer customer)
          Business method
 void ejbActivate()
           
 void ejbCreate()
          Default create method
 void ejbPassivate()
           
 void ejbRemove()
           
static javax.naming.Context getInitialContext()
           
 boolean isAlive()
          Business method
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerAgentSessionBean

public CustomerAgentSessionBean()
Method Detail

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

createCustomer

public Message createCustomer(MessageKey key,
                              Customer customer)
                       throws UnexpectedMessageSequenceNumberException,
                              VaultEntityCreateException
Business method Calls the entity bean method to create a cust entity bean.

Throws:
UnexpectedMessageSequenceNumberException
VaultEntityCreateException

editCustomer

public Message editCustomer(MessageKey key,
                            int custId,
                            Customer customer)
                     throws InvalidCustomerException,
                            UnexpectedMessageSequenceNumberException,
                            VaultEntityCreateException
Business method

Throws:
java.rmi.RemoteException
InvalidCustomerException
UnexpectedMessageSequenceNumberException
VaultEntityCreateException

isAlive

public boolean isAlive()
Business method