Package org.superbiz.osgi.calculator

Examples of org.superbiz.osgi.calculator.CalculatorRemote


    public static void invoke() throws Exception {
        final Properties properties = new Properties();
        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
        properties.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
        Context remoteContext = new InitialContext(properties);
        CalculatorRemote calculator = (CalculatorRemote) remoteContext.lookup("CalculatorBeanRemote");
        System.out.println("Server answered: " + calculator.sayHello());
    }
View Full Code Here


    public static void invoke() throws Exception {
        final Properties properties = new Properties();
        properties.setProperty(Context.INITIAL_CONTEXT_FACTORY, RemoteInitialContextFactory.class.getName());
        properties.setProperty(Context.PROVIDER_URL, "ejbd://localhost:4201");
        Context remoteContext = new InitialContext(properties);
        CalculatorRemote calculator = (CalculatorRemote) remoteContext.lookup("CalculatorBeanRemote");
        System.out.println("Server answered: " + calculator.sayHello());
    }
View Full Code Here

TOP

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

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.