Package org.superbiz.osgi.calculator

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


    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

Related Classes of org.superbiz.osgi.calculator.CalculatorLocal

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.