FileDocCategorySizeDatePackage
VendorX_CabinHandle.javaAPI DocExample1134Sun Dec 12 10:25:14 GMT 1999com.titan.cabin

VendorX_CabinHandle

public class VendorX_CabinHandle extends Object implements javax.ejb.Handle, Serializable

Fields Summary
private CabinPK
primary_key
private String
home_name
private Properties
jndi_properties
Constructors Summary
public VendorX_CabinHandle(CabinPK pk, String hn, Properties p)

        primary_key = pk;
        home_name = hn;
        jndi_properties = p;
    
Methods Summary
public javax.ejb.EJBObjectgetEJBObject()

      try {
        Context ctx = new InitialContext(jndi_properties);

        CabinHome home =
            (CabinHome) ctx.lookup(home_name);
        return home.findByPrimaryKey(primary_key);
      } catch(javax.ejb.FinderException fe){
            throw new RemoteException("Cannot locate EJB object",fe);
      } catch(javax.naming.NamingException ne){
            throw new RemoteException("Cannot locate EJB object",ne);
      }