FileDocCategorySizeDatePackage
Client_4.javaAPI DocExample1097Sat Mar 06 09:45:14 GMT 1999com.titan.cabin

Client_4

public class Client_4 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 home = (CabinHome)jndiContext.lookup("CabinHome");
            Cabin cabin_1 = home.create(101);
            CabinPK pk = (CabinPK)cabin_1.getPrimaryKey();
            Cabin cabin_2 = home.findByPrimaryKey(pk);

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