Package com.sun.enterprise.config.serverbeans

Examples of com.sun.enterprise.config.serverbeans.LbConfigs


    protected LbConfigs getLbConfigs() {
        try {
            ConfigContext ctx = AdminService.getAdminService().getAdminContext()
                                    .getAdminConfigContext();
            Domain domain = (Domain)ctx.getRootConfigBean();
            LbConfigs cfgs = domain.getLbConfigs();
            if (cfgs == null) {
                cfgs = new LbConfigs();
                domain.setLbConfigs(cfgs);
            }
            return cfgs;
        } catch( ConfigException ce) {
            return null;
View Full Code Here


            return null;
        }
    }

    protected LbConfig getLbConfig(String configName) throws MBeanException {
        LbConfigs lbConfigs = getLbConfigs();

        if (lbConfigs == null ) {
            _logger.log(Level.FINE,_sMgr.getString(
                    "http_lb_admin.NoLbConfigs"));
            String msg = _strMgr.getString("NoLbConfigsElement");
            throw new MBeanException ( new ConfigException(msg));
        }
        LbConfig lbConfig = lbConfigs.getLbConfigByName(configName);
        if (lbConfig == null ) {
            _logger.log(Level.FINE,_sMgr.getString(
                    "http_lb_admin.NoLbConfigs"));
            String msg = _strMgr.getString("InvalidLbConfigName", configName);
            throw new MBeanException (new ConfigException(msg));
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.serverbeans.LbConfigs

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.