https://developer.jboss.org/wiki/HowToPutAnExternalFileInTheClasspath
1. Create a new module for your configuration files
jboss-as-7/modules/com/yourcompany/configuration/main/module.xml
Note that from JBossAS 7.2.0.Final and newer (including WildFly 8.x), the module directory structure was changed for JBossAS/WildFly components only. You should continue to use the structure described above. See Layered Distributions and Module Path Organization for more information.
- <?xml version="1.0" encoding="UTF-8"?>
- <module xmlns="urn:jboss:module:1.1" name="com.mycompany.configuration">
- <resources>
- <resource-root path="."/>
- </resources>
- </module>
2. Add your properties files to the module
jboss-as-7/ modules/ com/ yourcompany/ configuration/ main/ module.xml settings.properties other-settings.xml
3. Add your module to your application classpath in a jboss-deployment-structure.xml file
- <?xml version="1.0" encoding="UTF-8"?>
- <jboss-deployment-structure>
- <deployment>
- <dependencies>
- <module name="com.mycompany.configuration" />
- </dependencies>
- </deployment>
- </jboss-deployment-structure>
'WAS' 카테고리의 다른 글
[websphere] 웹스피어 설치 및 설정 (0) | 2016.06.06 |
---|---|
[Tomcat] unable to compile class for JSP (0) | 2015.12.17 |
[JBOSS] jboss 7.x 커뮤니티 버전 에러 - java.lang.ClassNotFoundException: com.sun.crypto.provider.SunJCE (0) | 2015.09.14 |
[JBOSS] [Troubleshooting] JBoss EAP6 에서 server.log에 로그가 출력되지 않아요? (0) | 2015.09.04 |
[Tomcat] 톰캣7 root context 변경 및 log path 변경 (0) | 2015.08.05 |