Package Banking

Examples of Banking.Bank


    BankImpl bankImpl = new BankImpl();
    LOG.info("Bank created");

    // get object reference from the servant
    org.omg.CORBA.Object ref = rootpoa.servant_to_reference(bankImpl);
    Bank bankRef = BankHelper.narrow(ref);
    LOG.info("Bank reference created");

    // get the NameService
    org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
    NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
View Full Code Here


     
        NamingContextExt namingCtx = NamingContextExtHelper.narrow(objRef);
  
        // resolve the object reference
        String bankname = "swissbank";
        Bank bank = BankHelper.narrow(namingCtx.resolve_str(bankname));

        System.out.println("Obtained a handle on server object: " + bank);
       
        String accNum = "0234.234432.50L";
        CurrentAccount currentAccount = bank.createCurrentAccount(accNum, 123);
       
        int i = currentAccount.loanLimit();
        System.out.println("loanlimit: " + i);
        System.out.print(currentAccount.accountNumber());
        currentAccount.deposit(100);
       
        bank.payInterest();

        System.out.print(currentAccount.balance());

        //        currentAccount.deposit(100);
//        System.out.println("yeeeee: " + currentAccount.balance());
View Full Code Here

TOP

Related Classes of Banking.Bank

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.