Where to put property file in JBOSS 7 or Glassflish? (Best practice)

旧时模样 提交于 2020-01-05 07:13:03

问题


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.


回答1:


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.

See also migration-issues-to-jboss-7-1




回答2:


The most practical solution is creating a custom folder outside both JBOSS and Glassfish (i.e C:\PropertiesFolder) then add this folder to the classpath of each server. Please read my postfor more details about classpath in JBoss



来源:https://stackoverflow.com/questions/12562069/where-to-put-property-file-in-jboss-7-or-glassflish-best-practice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!