Package org.jacorb.test

Examples of org.jacorb.test.BasicServer.ping()


        system.set_servant_manager(new PoaServantActivator());
       
        org.omg.CORBA.Object objectRef = system.create_reference(BasicServerHelper.id());
        BasicServer ref = BasicServerHelper.narrow(objectRef);
        // Local op; will incarnate the object.
        ref.ping();
       
        // Now try deactivating it.
        system.deactivate_object (system.reference_to_id(ref));
    }
   
View Full Code Here


        {
            public void run()
            {
                try
                {
                    server.ping();
                    success[0] = true;
                }
                catch (Exception e)
                {
                    exception[0] = e;
View Full Code Here

        props.put("jacorb.connection.client.eager_close", "true");

        ORB orb = newORB(props);

        BasicServer server1 = BasicServerHelper.narrow(orb.string_to_object(server1IOR));
        server1.ping();
        System.err.println ("### Waiting for server shutdown");
        Thread.sleep(10000);

        final String threadName = "ClientMessageReceptor";
View Full Code Here

        system.set_servant_manager(new PoaServantActivator());

        org.omg.CORBA.Object objectRef = system.create_reference(BasicServerHelper.id());
        BasicServer ref = BasicServerHelper.narrow(objectRef);
        // Local op; will incarnate the object.
        ref.ping();

        // Now try deactivating it.
        system.deactivate_object (system.reference_to_id(ref));
    }
View Full Code Here

        system.set_servant_manager(new PoaServantActivator());

        org.omg.CORBA.Object objectRef = system.create_reference(BasicServerHelper.id());
        BasicServer ref = BasicServerHelper.narrow(objectRef);
        // Local op; will incarnate the object.
        ref.ping();

        // Now try deactivating it.
        system.deactivate_object (system.reference_to_id(ref));
    }
View Full Code Here

        org.omg.CORBA.Object obj2 = clientORBTestCase.getORB ().string_to_object(setup.getServerIOR());

        BasicServer server1 = BasicServerHelper.narrow (obj1);
        BasicServer server2 = BasicServerHelper.narrow (obj2);
        server1.bounce_long(1);
        server2.ping();

        setup.tearDown ();

        try
        {
View Full Code Here

    @Test
    public void testDisconnectAfterSystemException() throws Exception
    {
        BasicServer server1 = BasicServerHelper.narrow(orb.string_to_object(server1IOR));
        server1.ping();
        Thread.sleep(10000);

        final String threadName = "ClientMessageReceptor";

        dumpThread(threadName);
View Full Code Here

        {
            public void run()
            {
                try
                {
                    server.ping();
                    success[0] = true;
                }
                catch (Exception e)
                {
                    exception[0] = e;
View Full Code Here

    public void test_reconnect_restarted_server() throws Exception
    {
        org.omg.CORBA.Object obj = clientORBTestCase.getORB ().string_to_object
            ("corbaloc:iiop:localhost:54321/MyImpl/MyPOA/MyObject");
        BasicServer server = BasicServerHelper.narrow (obj);
        server.ping();

        // Server should now exit (CustomBasicImpl has a wait of 5000).
        setup.tearDown ();

        setup = new ClientServerSetup(
View Full Code Here

            @Override
            public void run()
            {
                try
                {
                    server2.ping();
                    sucess[0] = true;
                }
                catch (Exception e)
                {
                    exception[0] = e;
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.