在JBOSS 7或Glassflish中放置属性文件的位置? (最佳实践) [英] Where to put property file in JBOSS 7 or Glassflish? (Best practice)
问题描述
我用eclipse为JBOSS EAP 5开发了应用程序。我将属性文件放在server-conf / conf / ...
下我现在在Netbeans(7.2)中开发。捆绑的glassfish服务器用于更容易的开发。目标环境是JBOSS EAP 6.放置属性文件的最佳位置是什么?这两种环境的常见位置都很棒。
I have developed applications for JBOSS EAP 5 with eclipse. I placed property files under server-conf/conf/... I am now developing in Netbeans (7.2). The bundled glassfish server is used for easier development. The target environment is JBOSS EAP 6. What is the best place to place property files? A common place for both environments would be great.
推荐答案
如果你想让它们在应用程序的外部,你可能会有编写自定义模块。这并不像听起来那么糟糕,请查看 HowToPutAnExternalFileInTheClasspath 。
If you want to have them external to the application you'll probably have to write a custom module. This isn't as bad as it sounds, check out HowToPutAnExternalFileInTheClasspath.
另请参阅 migration-issues-to-jboss-7 -1
这篇关于在JBOSS 7或Glassflish中放置属性文件的位置? (最佳实践)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!