Overview
Remote Interface
package edu.jbs.ooc.beans; /** * This is an Enterprise Java Bean Remote Interface */ public interface SessionDB extends javax.ejb.EJBObject { /** * * @return edu.jbs.ooc.databeans.TransportBean * @param tpBean edu.jbs.ooc.databeans.TransportBean * @exception String The exception description. */ edu.jbs.ooc.databeans.TransportBean processAction(edu.jbs.ooc.databeans.TransportBean tpBean) throws java.rmi.RemoteException; }Home Interface
package edu.jbs.ooc.beans; /** * This is a Home interface for the Session Bean */ public interface SessionDBHome extends javax.ejb.EJBHome { /** * create method for a session bean * @return edu.jbs.ooc.beans.SessionDB * @exception javax.ejb.CreateException The exception description. * @exception java.rmi.RemoteException The exception description. */ edu.jbs.ooc.beans.SessionDB create() throws javax.ejb.CreateException, java.rmi.RemoteException; }Session Bean
package edu.jbs.ooc.beans; import edu.jbs.ooc.databeans.*; import edu.jbs.ooc.mappers.*; import java.rmi.RemoteException; import java.security.Identity; import java.util.Properties; import javax.ejb.*; import com.ibm.ejs.ns.jndi.*; import javax.naming.*; /** * This is a Session Bean Class */ public class SessionDBBean implements SessionBean { private javax.ejb.SessionContext mySessionCtx = null; private final static long serialVersionUID = 3206093459760846163L; public edu.jbs.ooc.mappers.ObjectBeanMapperInterface aMapper; /** * ejbActivate method comment * @exception java.rmi.RemoteException The exception description. */ public void ejbActivate() throws java.rmi.RemoteException {} /** * ejbCreate method comment * @exception javax.ejb.CreateException The exception description. * @exception java.rmi.RemoteException The exception description. */ public void ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException {} /** * ejbPassivate method comment * @exception java.rmi.RemoteException The exception description. */ public void ejbPassivate() throws java.rmi.RemoteException {} /** * ejbRemove method comment * @exception java.rmi.RemoteException The exception description. */ public void ejbRemove() throws java.rmi.RemoteException {} /** * getSessionContext method comment * @return javax.ejb.SessionContext */ public javax.ejb.SessionContext getSessionContext() { return mySessionCtx; } /** * Insert the method's description here. * Creation date: (3/27/2002 11:58:26 AM) * @return edu.jbs.ooc.databeans.TransportBean * @param tpBean edu.jbs.ooc.databeans.TransportBean */ public TransportBean processAction(TransportBean tpBean) { int target = tpBean.getTarget(); aMapper = ObjectBeanMapperFactory.getMapper ( target ); return aMapper.processAction ( tpBean ); } /** * setSessionContext method comment * @param ctx javax.ejb.SessionContext * @exception java.rmi.RemoteException The exception description. */ public void setSessionContext(javax.ejb.SessionContext ctx) throws java.rmi.RemoteException { mySessionCtx = ctx; }}