EJBFactory5

来源:互联网 发布:古剑奇谭网络能结婚吗 编辑:程序博客网 时间:2024/04/29 21:37

 private void loadPropFile()
    {
        Properties filecfg = new Properties(); // 文件配置项
        // 1.读config.propertes总文件置入缓存。
        Util.loadCfgFile(filecfg, "config_test.properties");
        INITIAL_CONTEXT_FACTORY_WEBLOGIC = filecfg.getProperty("INITIAL_CONTEXT_FACTORY_WEBLOGIC");
        INITIAL_CONTEXT_FACTORY_WEBSPHERE = filecfg.getProperty("INITIAL_CONTEXT_FACTORY_WEBSPHERE");
        KEY_URL = filecfg.getProperty("KEY_URL");
        isWeblogicVersion = filecfg.getProperty("isWeblogicVersion")
                .equals("true");
        System.out.print(KEY_URL);
    }