faqts : Computers : Programming : Languages : Java : EJB

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 7 people (86%) answered Yes
Recently 6 of 7 people (86%) answered Yes

Entry

what are the call back methods on statefull session bean and entity bean

Apr 5th, 2006 07:13
RAJESH WARRIER, srikant Nagoorkar,


As per EJB 2.1
statefull SessionBean:
    public abstract void setSessionContext(javax.ejb.SessionContext)   
                      java.rmi.RemoteException;
    public abstract void ejbRemove() throws java.rmi.RemoteException;
    public abstract void ejbActivate()throws java.rmi.RemoteException;
    public abstract void ejbPassivate() throws java.rmi.RemoteException;
EntityBean:
    public abstract void setEntityContext(javax.ejb.EntityContext)     
 throws  java.rmi.RemoteException;
    public abstract void unsetEntityContext() throws 
java.rmi.RemoteException;
    public abstract void ejbRemove()  throws javax.ejb.RemoveException,
 java.rmi.RemoteException;
    public abstract void ejbActivate() throws  java.rmi.RemoteException;
    public abstract void ejbPassivate() throws java.rmi.RemoteException;
    public abstract void ejbLoad()   java.rmi.RemoteException;
    public abstract void ejbStore()  throws  java.rmi.RemoteException;