Examples of purchaseGoods()


Examples of supplychain.Customer.purchaseGoods()

        // Locate the HelloWorld service component and invoke it
        // Locate the CustomerComponent service component and invoke it
        Customer customer = (Customer) moduleContext.locateService("CustomerComponent");
        System.out.println("Main thread " + Thread.currentThread());
        customer.purchaseGoods();

    }
}
View Full Code Here

Examples of supplychain.customer.Customer.purchaseGoods()

    public static final void main(String[] args) throws Exception {
        SCADomain scaDomain = SCADomain.newInstance("supplychain.composite");
        Customer customer = scaDomain.getService(Customer.class, "CustomerComponent");

        System.out.println("Main thread " + Thread.currentThread());
        customer.purchaseGoods();
        System.out.println("Main thread sleeping ...");
        Thread.sleep(1000);

        scaDomain.close();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.