Jboss-web.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * WildFly Deployment Descriptors")
 
No edit summary
Line 2: Line 2:


* [[WildFly Deployment Descriptors#Deployment_Descriptors|WildFly Deployment Descriptors]]
* [[WildFly Deployment Descriptors#Deployment_Descriptors|WildFly Deployment Descriptors]]
=System Properties Usage=
<tt>jboss-web.xml</tt> supports the usage of system properties, whose references will be replaced at deployment time with values defined in the application server's JVM. As an example, the name of the cache container and the cache name can be specified as system properties as follows:
<pre>
...
<replication-config>
    <cache-name>${app.cache.container.name}.${app.cache.name}</cache-name>
    ...
</replication-config>
...
</pre>
where <tt>app.cache.container.name</tt> and <tt>app.cache.name</tt> system properties can be defined in the [[WildFly_System_Properties#Declaration_in_Configuration_Files|<tt>system-properties</tt> section of the application server configuration file]], or externally with:
<pre>
-Dapp.cache.container.name=... -Dapp.cache.name=...
</pre>

Revision as of 16:25, 14 June 2016

Internal

System Properties Usage

jboss-web.xml supports the usage of system properties, whose references will be replaced at deployment time with values defined in the application server's JVM. As an example, the name of the cache container and the cache name can be specified as system properties as follows:

...
<replication-config>
    <cache-name>${app.cache.container.name}.${app.cache.name}</cache-name>
    ...
</replication-config>
...

where app.cache.container.name and app.cache.name system properties can be defined in the system-properties section of the application server configuration file, or externally with:

-Dapp.cache.container.name=... -Dapp.cache.name=...