home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Java / JDesignerPro / Jdp3_0.exe / data1.cab / Program_Files / Applications / Layouts / EJBSessionTemplate.java < prev    next >
Encoding:
Java Source  |  1999-04-09  |  904 b   |  47 lines

  1. import java.io.*;
  2. import java.net.*;
  3. import java.util.*;
  4. import javax.ejb.*;
  5. import java.rmi.*;
  6.  
  7. /**
  8.  * Class to represent a Session Bean.
  9.  */
  10. public class EJBSessionTemplate implements SessionBean {
  11.  
  12.     /*
  13.      * The session context for this session Bean
  14.      */
  15.     SessionContext ctx;
  16.  
  17.     /**
  18.      * The activate method is called when the instance is activated from its "passive" state.
  19.      */
  20.     public void ejbActivate() throws RemoteException {
  21.  
  22.     }
  23.  
  24.     /**
  25.      * The passivate method is called before the instance enters the "passive" state. 
  26.      */
  27.     public void ejbPassivate() throws RemoteException {
  28.  
  29.     }
  30.  
  31.     /**
  32.      * Called before the life of the session object is ended. 
  33.      */
  34.     public void ejbRemove() throws RemoteException {
  35.  
  36.     }
  37.  
  38.     /**
  39.      * Set the associated session context.
  40.      */
  41.     public void setSessionContext(SessionContext ctx) throws RemoteException {
  42.  
  43.         this.ctx = ctx;
  44.     }
  45.  
  46. }
  47.