Examples of CalculatorLocal


Examples of org.superbiz.osgi.calculator.CalculatorLocal

    private void tryLookup() {
        Properties p = new Properties();
        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
        try {
            Context ctx = new InitialContext(p);
            CalculatorLocal local = (CalculatorLocal) ctx.lookup("CalculatorBeanLocal");
            System.out.println("lookup OK: " + local.sayHello());
        } catch (NamingException e) {
            System.out.println("can't lookup bean: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.superbiz.osgi.calculator.CalculatorLocal

    private void tryLookup() {
        Properties p = new Properties();
        p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.core.LocalInitialContextFactory");
        try {
            Context ctx = new InitialContext(p);
            CalculatorLocal local = (CalculatorLocal) ctx.lookup("CalculatorBeanLocal");
            System.out.println("lookup OK: " + local.sayHello());
        } catch (NamingException e) {
            System.out.println("can't lookup bean: " + e.getMessage());
        }
    }
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.