Examples of MDBContainerConfig


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

        @HandlerOutput(name="Properties",  type=Map.class)})
       
        public static void getEjbMdbSettings(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        MDBContainerConfig mdbConfig = config.getMDBContainerConfig();
       
        String minSize = mdbConfig.getSteadyPoolSize();
        String maxSize = mdbConfig.getMaxPoolSize();
        String poolResize = mdbConfig.getPoolResizeQuantity();
        String timeout = mdbConfig.getIdleTimeoutInSeconds();
        Map<String, String> props = mdbConfig.getProperties();
        handlerCtx.setOutputValue("MinSize", minSize);
        handlerCtx.setOutputValue("MaxSize", maxSize);
        handlerCtx.setOutputValue("PoolResize", poolResize);
        handlerCtx.setOutputValue("Timeout", timeout);
        handlerCtx.setOutputValue("Properties", props);
View Full Code Here

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

       
        public static void saveEjbMdbSettings(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        try{
            MDBContainerConfig mdbConfig = config.getMDBContainerConfig();
            mdbConfig.setSteadyPoolSize((String)handlerCtx.getInputValue("MinSize"));
            mdbConfig.setMaxPoolSize((String)handlerCtx.getInputValue("MaxSize"));
            mdbConfig.setPoolResizeQuantity((String)handlerCtx.getInputValue("PoolResize"));
            mdbConfig.setIdleTimeoutInSeconds((String)handlerCtx.getInputValue("Timeout"));       
            AMXUtil.editProperties(handlerCtx, mdbConfig);
        }catch(Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
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.