home *** CD-ROM | disk | FTP | other *** search
Java Source | 1999-04-09 | 904 b | 47 lines |
- import java.io.*;
- import java.net.*;
- import java.util.*;
- import javax.ejb.*;
- import java.rmi.*;
-
- /**
- * Class to represent a Session Bean.
- */
- public class EJBSessionTemplate implements SessionBean {
-
- /*
- * The session context for this session Bean
- */
- SessionContext ctx;
-
- /**
- * The activate method is called when the instance is activated from its "passive" state.
- */
- public void ejbActivate() throws RemoteException {
-
- }
-
- /**
- * The passivate method is called before the instance enters the "passive" state.
- */
- public void ejbPassivate() throws RemoteException {
-
- }
-
- /**
- * Called before the life of the session object is ended.
- */
- public void ejbRemove() throws RemoteException {
-
- }
-
- /**
- * Set the associated session context.
- */
- public void setSessionContext(SessionContext ctx) throws RemoteException {
-
- this.ctx = ctx;
- }
-
- }
-