Package org.apache.tuscany.sca.host.corba.jee

Examples of org.apache.tuscany.sca.host.corba.jee.JEECorbaHost


            if (t == null) {
                fail("The naming server cannot be started");
            }
            factoryClassName = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
            System.setProperty(Context.INITIAL_CONTEXT_FACTORY, TestInitialContextFactory.class.getName());
            host = new JEECorbaHost();
            host.start();
        } catch (Throwable e) {
            e.printStackTrace();
            fail(e.getMessage());
        }
View Full Code Here


    @Test
    public void test_unregisterOnStop() {
        try {
            String uri1 = createCorbanameURI("TempService1");
            String uri2 = createCorbanameURI("TempService2");
            JEECorbaHost innerHost = new JEECorbaHost();
            innerHost.start();
            TestInterfaceServant servant = new TestInterfaceServant();
            innerHost.registerServant(uri1, servant);
            innerHost.registerServant(uri2, servant);
            innerHost.stop();
            try {
                innerHost.lookup(uri1);
                fail();
            } catch (CorbaHostException e) {
                assertEquals(CorbaHostException.NO_SUCH_OBJECT, e.getMessage());
            }
            try {
                innerHost.lookup(uri2);
                fail();
            } catch (CorbaHostException e) {
                assertEquals(CorbaHostException.NO_SUCH_OBJECT, e.getMessage());
            }
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.host.corba.jee.JEECorbaHost

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.