Examples of ORBConfig


Examples of com.sun.appserv.management.config.ORBConfig

       
        public static void getOrbValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        IIOPServiceConfig iiopConfig = config.getIIOPServiceConfig();
        ORBConfig orbConfig = iiopConfig.getORBConfig();
        String threadPoolId = orbConfig.getUseThreadPoolIds();
        String maxMsgSize = orbConfig.getMessageFragmentSize();
        String totalConns = orbConfig.getMaxConnections();
        boolean iiopClient = iiopConfig.getClientAuthenticationRequired();
        Map<String, String> props = orbConfig.getProperties();
       
        handlerCtx.setOutputValue("ThreadPools", threadPoolId);
        handlerCtx.setOutputValue("MaxMsgSize", maxMsgSize);
        handlerCtx.setOutputValue("TotalConns", totalConns);
        handlerCtx.setOutputValue("IIOPClient", iiopClient);
View Full Code Here

Examples of com.sun.appserv.management.config.ORBConfig

        public static void saveOrbValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        try{
            IIOPServiceConfig iiopConfig = config.getIIOPServiceConfig();
            ORBConfig orbConfig = iiopConfig.getORBConfig();
            orbConfig.setUseThreadPoolIds((String)handlerCtx.getInputValue("ThreadPools"));
            orbConfig.setMessageFragmentSize((String)handlerCtx.getInputValue("MaxMsgSize"));
            orbConfig.setMaxConnections((String)handlerCtx.getInputValue("TotalConns"));
            iiopConfig.setClientAuthenticationRequired(((Boolean)handlerCtx.getInputValue("IIOPClient")).booleanValue());
            AMXUtil.editProperties(handlerCtx, orbConfig);
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        BusFactory.setDefaultBus(bus);
       
        BindingFactoryManager bfm = bus.getExtension(BindingFactoryManager.class);       
        CorbaBindingFactory factory =
            (CorbaBindingFactory)bfm.getBindingFactory("http://cxf.apache.org/bindings/corba");
        OrbConfig orbConfig = (OrbConfig)factory.getOrbConfig();
        assertTrue("CorbaBindingFactoryConfigurer is null", orbConfig != null);
        Properties props  = orbConfig.getOrbProperties();
        assertTrue("probs is null", props != null);
        assertTrue("prob1 is not equal to value1",
                "value1".equals(props.get("prop1")));
        assertTrue("prob2 is not equal to value2",
                "value2".equals(props.get("prop2")));
        assertTrue("ORBClass is not equal to MyORBImpl",
                "com.orbimplco.MyORBImpl".equals(props.get("org.omg.CORBA.ORBClass")));
        assertTrue("ORBSingletonClass is not equal to MyORBSingleton",
                "com.orbimplco.MyORBSingleton".equals(props.get("org.omg.CORBA.ORBSingletonClass")));
        List <String> orbArgs = orbConfig.getOrbArgs();
        assertTrue("orbArgs is null", orbArgs != null);
        String domainNameId = orbArgs.get(0);
        assertTrue("domainNameId is not equal to -ORBdomain_name",
                "-ORBdomain_name".equals(domainNameId));
        String domainNameValue = orbArgs.get(1);
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        java.util.Properties props = System.getProperties();
       
       
        props.put("yoko.orb.id", "CXF-CORBA-Server-Binding");
        orb = ORB.init(new String[0], props);
        orbConfig = new OrbConfig();
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

   
   
    @Before
    public void setUp() throws Exception {
        testUtils = new TestUtils();
        orbConfig = new OrbConfig();
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        java.util.Properties props = System.getProperties();
       
       
        props.put("yoko.orb.id", "CXF-CORBA-Server-Binding");
        orb = ORB.init(new String[0], props);
        orbConfig = new OrbConfig();
        targetObject = EasyMock.createMock(org.omg.CORBA.Object.class);
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        java.util.Properties props = System.getProperties();
       
       
        props.put("yoko.orb.id", "CXF-CORBA-Server-Binding");
        orb = ORB.init(new String[0], props);
        orbConfig = new OrbConfig();
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        java.util.Properties props = System.getProperties();
       
       
        props.put("yoko.orb.id", "CXF-CORBA-Server-Binding");
        orb = ORB.init(new String[0], props);
        orbConfig = new OrbConfig();
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

   
   
    @Before
    public void setUp() throws Exception {
        testUtils = new TestUtils();
        orbConfig = new OrbConfig();
    }
View Full Code Here

Examples of org.apache.cxf.binding.corba.utils.OrbConfig

        java.util.Properties props = System.getProperties();
       
       
        props.put("yoko.orb.id", "CXF-CORBA-Server-Binding");
        orb = ORB.init(new String[0], props);
        orbConfig = new OrbConfig();
        targetObject = EasyMock.createMock(org.omg.CORBA.Object.class);
    }
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.