Examples of DiamondDbConfManager


Examples of com.taobao.tddl.jdbc.atom.config.DiamondDbConfManager

      String errorMsg = "[attributeError] TAtomDatasource of appName Or dbKey is Empty !";
      logger.error(errorMsg);
      throw new AtomIllegalException(errorMsg);
    }
    // 2.����dbConfManager
    DiamondDbConfManager defaultDbConfManager = new DiamondDbConfManager();
    defaultDbConfManager.setGlobalConfigDataId(TAtomConstants
        .getGlobalDataId(this.dbKey));
    defaultDbConfManager.setAppConfigDataId(TAtomConstants.getAppDataId(
        this.appName, this.dbKey));
    // ��ʼ��dbConfManager
    defaultDbConfManager.init();
    dbConfManager = defaultDbConfManager;
    // 3.��ȡȫ������
    String globaConfStr = dbConfManager.getGlobalDbConf();
    // ע��ȫ�����ü���
    registerGlobaDbConfListener(defaultDbConfManager);
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.