问题
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