FileDocCategorySizeDatePackage
Client_6.javaAPI DocExample1090Sat Mar 06 09:45:40 GMT 1999com.titan.cabin

Client_6

public class Client_6 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static javax.naming.ContextgetInitialContext()


        Properties p = new Properties();
        // ... specify the JNDI properties specific to the vendor
        return new javax.naming.InitialContext(p);
    
public static voidmain(java.lang.String[] args)

        try{

            Context jndiContext = getInitialContext();
            CabinHome c_home = (CabinHome)jndiContext.lookup("CabinHome");
            CabinPK pk = new CabinPK();
            pk.id = 101;
            Cabin cabin = c_home.findByPrimaryKey(pk);
            cabin.remove();

        }catch(java.rmi.RemoteException re){re.printStackTrace();}
         catch(javax.naming.NamingException ne)
              {ne.printStackTrace();}
         catch(Throwable t){t.printStackTrace();}