Package com.sun.ebank.ejb.account

Examples of com.sun.ebank.ejb.account.AccountControllerHome


      NamingException.printStackTrace();
    }

//Look up and create AccountController bean
    try {
      AccountControllerHome accountControllerHome =
      EJBGetter.getAccountControllerHome();
      account = accountControllerHome.create();
    } catch (Exception NamingException) {
      NamingException.printStackTrace();
    }
  }
View Full Code Here


public class J2EEClientTest {

   public static void main(String[] args) {

       CustomerControllerHome customerControllerHome;
       AccountControllerHome accountControllerHome;
       TxControllerHome txControllerHome;

       try {
           Context initial;
           Object objref;

           // Customer

           initial = new InitialContext();
           objref = initial.lookup
               (CodedNames.CUSTOMER_CONTROLLER_EJBHOME);
           customerControllerHome =
               (CustomerControllerHome)PortableRemoteObject.narrow(objref,
               CustomerControllerHome.class);

           System.out.println('\n' + "*** CustomerTest ***" + '\n');
           new CustomerTest(customerControllerHome.create());

           // Account

           initial = new InitialContext();
           objref = initial.lookup
               (CodedNames.ACCOUNT_CONTROLLER_EJBHOME);
           accountControllerHome =
               (AccountControllerHome)PortableRemoteObject.narrow(objref,
               AccountControllerHome.class);

           System.out.println('\n' + "*** AccountTest ***" + '\n');
           new AccountTest(accountControllerHome.create());

           // Tx

           initial = new InitialContext();
           objref = initial.lookup
View Full Code Here

public class MainTest {

   public static void main(String[] args) {

       CustomerControllerHome customerControllerHome;
       AccountControllerHome accountControllerHome;
       TxControllerHome txControllerHome;

       try {
           Context initial;
           Object objref;

           initial = new InitialContext();
           objref = initial.lookup("MyCustomerController");
           customerControllerHome =
               (CustomerControllerHome)PortableRemoteObject.narrow(objref,
               CustomerControllerHome.class);

           System.out.println('\n' + "*** CustomerTest ***" + '\n');
           new CustomerTest(customerControllerHome.create());

           initial = new InitialContext();
           objref = initial.lookup("MyAccountController");
           accountControllerHome =
               (AccountControllerHome)PortableRemoteObject.narrow(objref,
               AccountControllerHome.class);

           System.out.println('\n' + "*** AccountTest ***" + '\n');
           new AccountTest(accountControllerHome.create());

           initial = new InitialContext();
           objref = initial.lookup("MyTxController");
           txControllerHome =
               (TxControllerHome)PortableRemoteObject.narrow(objref,
View Full Code Here

      NamingException.printStackTrace();
    }

//Look up and create AccountController bean
    try {
      AccountControllerHome accountControllerHome =
      EJBGetter.getAccountControllerHome();
      account = accountControllerHome.create();
    } catch (Exception NamingException) {
      NamingException.printStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of com.sun.ebank.ejb.account.AccountControllerHome

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.