【发布时间】:2011-01-18 07:05:20
【问题描述】:
我是 servlet 的新手。我在 servlet.then 中使用以下代码部署到 Jboss 4.1 。 backup_database_configuration_location 是属性文件的位置。但是找不到。如何在 war 文件中指定目录? 提前谢谢大家
try {
backupDatabaseConfiguration = new Properties();
FileInputStream backupDatabaseConfigurationfile = new FileInputStream(backup_database_configuration_location));
backupDatabaseConfiguration.load(backupDatabaseConfigurationfile);
backupDatabaseConfigurationfile.close();
} catch (Exception e) {
log.error("Exception while loading backup databse configuration ", e);
throw new ServletException(e);
}
【问题讨论】:
标签: java deployment servlets jboss directory