Package com.sun.appserv.management.config

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


        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        String jmsHostName = (String)handlerCtx.getInputValue("JmsHostName");
       
        Map jmsHostsMap = config.getJMSServiceConfig().getJMSHostConfigMap();
        JMSHostConfig jmsHostConfig = (JMSHostConfig)jmsHostsMap.get(jmsHostName);
        String host = jmsHostConfig.getHost();
        String port = jmsHostConfig.getPort();
        String adminUser = jmsHostConfig.getAdminUserName();
        String adminPwd = jmsHostConfig.getAdminPassword();
       
        handlerCtx.setOutputValue("Host", host);
        handlerCtx.setOutputValue("Port", port);
        handlerCtx.setOutputValue("AdminUser", adminUser);
        handlerCtx.setOutputValue("AdminPwd", adminPwd);
View Full Code Here


        public static void getDefaultJmsDestinationValues(HandlerContext handlerCtx) {
        String configName = (String) handlerCtx.getInputValue("ConfigName");
        ConfigConfig config = AMXUtil.getConfig(configName);
        String jmsHostName = (String)handlerCtx.getInputValue("JmsHostName");
        Map jmsHostsMap = config.getJMSServiceConfig().getJMSHostConfigMap();
        JMSHostConfig jmsHostConfig = (JMSHostConfig)jmsHostsMap.get(jmsHostName);
       
        String host = jmsHostConfig.getDefaultValue(JMSHostConfigKeys.HOST_KEY);
        String port = jmsHostConfig.getDefaultValue(JMSHostConfigKeys.PORT_KEY);
        String adminUser = jmsHostConfig.getDefaultValue(JMSHostConfigKeys.ADMIN_USER_NAME_KEY);
        String adminPwd = jmsHostConfig.getDefaultValue(JMSHostConfigKeys.ADMIN_PASSWORD_KEY);
       
        handlerCtx.setOutputValue("Host", host);
        handlerCtx.setOutputValue("Port", port);
        handlerCtx.setOutputValue("AdminUser", adminUser);
        handlerCtx.setOutputValue("AdminPwd", adminPwd);
View Full Code Here

                return;
               
            }
            Map jmsHostsMap = config.getJMSServiceConfig().getJMSHostConfigMap();
            JMSHostConfig jmsHostConfig = (JMSHostConfig)jmsHostsMap.get(jmsHostName);           
            jmsHostConfig.setHost((String)handlerCtx.getInputValue("Host"));
            jmsHostConfig.setPort((String)handlerCtx.getInputValue("Port"));
            jmsHostConfig.setAdminUserName((String)handlerCtx.getInputValue("AdminUser"));
            jmsHostConfig.setAdminPassword((String)handlerCtx.getInputValue("AdminPwd"));
        }catch (Exception ex){
            GuiUtil.handleException(handlerCtx, ex);
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.appserv.management.config.JMSHostConfig

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.