private void readConfigurations() { ConfigurationManager manager = ConfigurationManager.getInstance(); Configuration gtasConfig = manager.getConfig(IGtasConfig.CONFIG_NAME); sm.setAttribute(IAttributeKeys.ENTERPRISE_ID, gtasConfig.getString(IGtasConfig.ENTERPRISE_ID)); sm.setAttribute(IAttributeKeys.APPLICATION, gtasConfig.getString(IGtasConfig.APPLICATION_NAME)); // sm.setAttribute(IAttributeKeys.APPLICATION, "gridtalk"); }
public static String getTempFolderPath() { try { ConfigurationManager configManager = ConfigurationManager.getInstance(); Configuration config = configManager.getConfig(ITempDirConfig.TEMP_DIR_CONFIG); java.io.File file = new java.io.File(config.getString(ITempDirConfig.TEMP_DIR)); if (!file.exists()) { file.mkdir(); } return file.getCanonicalPath(); } catch (Exception ex) { return null; } }