Jboss-web.xml: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 23: | Line 23: | ||
=HTTP Session Replication Configuration= | =HTTP Session Replication Configuration= | ||
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> | <blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;"> | ||
:[[HTTP_Session_Replication#WildFly-Specific_Configuration|HTTP Session Replication Configuration]] | :[[HTTP_Session_Replication#WildFly-Specific_Configuration|HTTP Session Replication Configuration]] | ||
</blockquote> | </blockquote> | ||
=Root Context= | |||
<pre> | |||
... | |||
<context-root>bank</context-root> | |||
... | |||
</pre> |
Revision as of 03:38, 16 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=...
HTTP Session Replication Configuration
Root Context
... <context-root>bank</context-root> ...