Package supplychain.customer

Examples of supplychain.customer.Customer


*/
public class SupplyChainClient {

    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

Related Classes of supplychain.customer.Customer

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.