-
1. Re: Where to keep External mycustom.properties file in Wildfly 8.2.0Final while migrating form Jboss4.2.3 server/default/conf
sanjay05222 Mar 16, 2015 6:43 PM (in response to jamesedler)Hi James ,
The process of externalizing the properties can be done by following below mentioned steps
- Create and populate the module/ directory structure.
- Create a directory structure under the JBOSS_HOME/module directory to contain the files and JARs. For example:
- $ cd EAP_HOME/modules/
- $ mkdir -p myorg-conf/main/properties
- Move the properties files to the JBOSS_HOME/modules/myorg-conf/main/<properties-folder>/ directory you created in the previous step.
- Create a module.xml file in the JBOSS_HOME/modules/myorg-conf/main/ directory containing the following XML:
- Create a directory structure under the JBOSS_HOME/module directory to contain the files and JARs. For example:
<module xmlns="urn:jboss:module:1.1" name="myorg-conf">
<resources>
<resource-root path="properties-folder"/>
</resources>
</module>
PS: Important thing it is little different than jars where modules are there. jars are kept immediately under the "main" or "slot number" named folders but here the module.xml and properties files are not at the same level. ( I am not sure if really it matters)
There can be one or more properties file(s) but one don't have to mention all the files in the module.xml files explicitly, just have to mention the top folder (properties_folder) where all properties file are under the main
More Details Refer Document Link
Sanjay Gautam
- Create and populate the module/ directory structure.
-
2. Re: Where to keep External mycustom.properties file in Wildfly 8.2.0Final while migrating form Jboss4.2.3 server/default/conf
jamesedler Mar 16, 2015 6:47 PM (in response to sanjay05222)Thanks for the reply and looks like that the steps mentioned works fine , do you have Idea if I can load applicationContext file of spring from any of similar settings as my application is earlier has Jboss 4.2.3. where we use to drop the applicationContext.xyz.xml and that use to get loaded into the system and using the jars and wars it use to wire the application together. but I am not sure how I can do the same thing in wildfly 8.2.0Final version . If any one or you can help me to find out the details it will be great.
thanks
James