Package org.omg.CORBA

Examples of org.omg.CORBA.ORB.shutdown()


      Something s = (Something)in.read_value();

      System.out.println("### the value is : " + s.value + "\nthe number is " + s.number);

      foreignorb.shutdown(true);
      jacorborb.shutdown(true);
      assertTrue (s.number == -10);
   }


   public void testException() throws Exception
View Full Code Here


      NegativeArgumentException n = (NegativeArgumentException)in.read_value();
      System.out.println("the value i is : " + n.i + "\nthe static value j is : " + n.j+" \nmessage " + n.getMessage());

      foreignorb.shutdown(true);
      jacorborb.shutdown(true);
      assertTrue (n.i == -10);
   }
}
View Full Code Here

                {
                    try
                    {
                        Thread.sleep(1 * 1000);
                        _poa.deactivate_object(_object_id);
                        _orb.shutdown(true);
                    }
                    catch (Exception e)
                    {
                        e.printStackTrace();
                    }
View Full Code Here

    public void tearDown() throws Exception
    {
        for (Iterator<ORB> iter = orbs.iterator(); iter.hasNext();)
        {
            ORB orb = iter.next();
            orb.shutdown(true);
        }
        orbs.clear();
    }

    /**
 
View Full Code Here

        ORB orb = ORB.init(args, props);

        // Leave this printout in else test will fail.
        System.out.println("ORB: " + orb.getClass().getName());

        orb.shutdown(true);
    }
}
View Full Code Here

        ORB orb = this.getAnotherORB(props);

        Logger orbLogger = ((org.jacorb.orb.ORB)orb).getConfiguration().getLogger("org.jacorb");
        orbLogger.error("testLogFileAppend this is the first test message");

        orb.shutdown(true);
        ((org.jacorb.config.JacORBConfiguration)((org.jacorb.orb.ORB)orb).getConfiguration()).shutdownLogging();

        orb = this.getAnotherORB(props);
        orbLogger = ((org.jacorb.orb.ORB)orb).getConfiguration().getLogger("org.jacorb");
        orbLogger.error("testLogFileAppend this is the second test message");
View Full Code Here

        ORB orb = this.getAnotherORB(props);

        Logger orbLogger = ((org.jacorb.orb.ORB)orb).getConfiguration().getLogger("org.jacorb");
        orbLogger.error("testLogFileNotAppend this is the first test message");
        orb.shutdown(true);
        ((org.jacorb.config.JacORBConfiguration)((org.jacorb.orb.ORB)orb).getConfiguration()).shutdownLogging();

        orb = ORB.init (new String[]{}, props);
        orbLogger = ((org.jacorb.orb.ORB)orb).getConfiguration().getLogger("org.jacorb");
        orbLogger.error("testLogFileNotAppend this is the second test message");
View Full Code Here

        props.setProperty("jacorb.logfile.append", "on");
        props.setProperty("jacorb.logfile.maxLogSize", "1500");
        props.setProperty("jacorb.logfile.rotateCount", "2");

        ORB orb = ORB.init(new String[0], props);
        orb.shutdown(true);
        ((org.jacorb.config.JacORBConfiguration)((org.jacorb.orb.ORB)orb).getConfiguration()).shutdownLogging();
        orb = ORB.init(new String[0], props);
        POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
        poa.destroy(true, true);
        orb.shutdown(true);
View Full Code Here

        orb.shutdown(true);
        ((org.jacorb.config.JacORBConfiguration)((org.jacorb.orb.ORB)orb).getConfiguration()).shutdownLogging();
        orb = ORB.init(new String[0], props);
        POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
        poa.destroy(true, true);
        orb.shutdown(true);

        ((org.jacorb.config.JacORBConfiguration)((org.jacorb.orb.ORB)orb).getConfiguration()).shutdownLogging();

        final String[] list = dir.list();
        assertEquals(Arrays.asList(list).toString(), 2, list.length);
View Full Code Here

            File killFile = new File(args[1]);
            while(!killFile.exists())
            {
                Thread.sleep(1000);
            }
            orb.shutdown(true);
        }
        else
        {
            orb.run();
        }
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.