Package Banking

Examples of Banking.AccountPOATie


    AccountImpl accountImpl = null;
    if ((accountImpl = internal_findAccount(accountNumber)) != null) {
     
      try {
        // export
        AccountPOATie tie = new AccountPOATie(accountImpl);
        Account account = AccountHelper.narrow(this._poa().servant_to_reference(tie));
       
        return account;
       
      } catch (Exception e) {
View Full Code Here


        rootpoa.the_POAManager().activate();

        // test
        String accNum = "0234.234432.50L";
        AccountImpl accountImpl = new AccountImpl(accNum);
        AccountPOATie tie = new AccountPOATie(accountImpl, rootpoa);
       
        Account account = tie._this(orb);
        org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
        NamingContextExt namingCtx = NamingContextExtHelper.narrow(objRef);

        NameComponent path[] = namingCtx.to_name( accNum );
        namingCtx.rebind(path, account);
View Full Code Here

TOP

Related Classes of Banking.AccountPOATie

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.