Package com.ibm.demo.entity

Examples of com.ibm.demo.entity.CustomerRemote


    }
   
    List granted = new ArrayList();
   
    //loop through all customers
    CustomerRemote customer = null;
    for (int i = 1; ; i++){
      Integer pk = new Integer(i);
      try{
        customer = customerHome.findByPrimaryKey(pk);
      } catch(FinderException fe){
        System.out.println("Find Exception: " + fe.getMessage());
        break;
      } catch(RemoteException re){
        System.out.println("Remote Exception: " + re.getMessage());
        break;
      }
      // Check to see if the annualSalary to loanAmount ratio is not acceptable (<0.1)
     
      try{
        double ratio = customer.getAnnualSalary().doubleValue() / customer.getLoanAmount().doubleValue();
        if((customer != null)&&(ratio < 0.1)){
          granted.add(customer.getName());
        }
      }catch (RemoteException re){
        System.out.println("Remote Exception: " + re.getMessage());
      }
    }
View Full Code Here


   */
  public void submitLoanApplication(Integer id, String name, String address, Date birthdate,
                    String sssNo, Double annualSalary, Double loanAmount) {
   
    CustomerHomeRemote customerHome = null;
    CustomerRemote customer = null;
   
    try{
      Context jndiContext = new InitialContext();
      Object obj = jndiContext.lookup("java:comp/env/ejb/CustomerHomeRemote");

View Full Code Here

   */
  public int getMaxPK(){
    int maxPK = 0;
   
    CustomerHomeRemote customerHome = null;
    CustomerRemote customer = null;
   
    try{
      Context jndiContext = new InitialContext();
      Object obj = jndiContext.lookup("java:comp/env/ejb/CustomerHomeRemote");

View Full Code Here

TOP

Related Classes of com.ibm.demo.entity.CustomerRemote

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.