Package bigbank.account

Examples of bigbank.account.AccountService


        SCANodeFactory factory = SCANodeFactory.newInstance();
        SCANode node = factory.createSCANodeFromClassLoader("BigBank.composite", BigBankClient.class.getClassLoader());
        node.start();
       
        AccountService accountService = ((SCAClient)node).getService(AccountService.class, "AccountServiceComponent");

        System.out.println("Account summary: " + accountService.getAccountReport("Customer_01") );

        node.stop();
   
View Full Code Here


    public static void main(String[] args) throws Exception {

        SCADomain domain = SCADomain.newInstance("BigBank.composite");

        AccountService accountService = domain.getService(AccountService.class, "AccountServiceComponent");

        String customerID = "Customer_01";

        System.out.println("Calling account service for customer: " + customerID);
        System.out.println();
        double balance = accountService.getAccountReport(customerID);

        System.out.println();
        System.out.println("Balance: " + balance);

        domain.close();
View Full Code Here

public class BigBankClient {
    public static void main(String[] args) throws Exception {

        SCADomain scaDomain = SCADomain.newInstance("BigBank.composite");
       
        AccountService accountService = scaDomain.getService(AccountService.class,
                                                          "AccountServiceComponent");

        System.out.println("Account summary: " + accountService.getAccountReport("Foo") );

        scaDomain.close();
   
View Full Code Here

    public static void main(String[] args) throws Exception {

        SCADomain domain = SCADomain.newInstance("BigBank.composite");

        AccountService accountService = domain.getService(AccountService.class, "AccountServiceComponent");

        String customerID = "1234";

        System.out.println("Calling account service for customer: " + customerID);
        System.out.println();
        double balance = accountService.getAccountReport(customerID);

        System.out.println();
        System.out.println("Balance: " + balance);

        domain.close();
View Full Code Here

TOP

Related Classes of bigbank.account.AccountService

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.