Package com.titan.cabin

Examples of com.titan.cabin.CabinHomeLocal


           javax.naming.Context jndiContext = new InitialContext();
            Object obj =
                   jndiContext.lookup("java:comp/env/ejb/CabinHome");


            CabinHomeLocal home = (CabinHomeLocal)
            javax.rmi.PortableRemoteObject.narrow(obj,CabinHomeLocal.class);
   
            Vector vect = new Vector();
            for (int i = 1; ; i++) {
              Integer pk = new Integer(i);
              CabinLocal cabin = null;
              try {
                  cabin = home.findByPrimaryKey(pk);
                } catch(javax.ejb.FinderException fe) {
                    System.out.println("Caught exception: "+fe.getMessage()+" for pk="+i);

                    break;
                }
View Full Code Here

TOP

Related Classes of com.titan.cabin.CabinHomeLocal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.