Jboss-web.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[WildFly Deployment Descriptors#Deployment_Descriptors|WildFly Deployment Descriptors]]
* [[WildFly Deployment Descriptors#Deployment_Descriptors|WildFly Deployment Descriptors]]
=Schema=
Available with a WildFly distribution under <tt>$JBOSS_HOME/docs/schema/jboss-web_X_Y.xsd</tt>.
=Example=
{{Internal|jboss-web.xml Example|jboss-web.xml Example}}


=System Properties Usage=
=System Properties Usage=
Line 21: Line 29:
-Dapp.cache.container.name=... -Dapp.cache.name=...
-Dapp.cache.container.name=... -Dapp.cache.name=...
</pre>
</pre>
=HTTP Session Replication Configuration=
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[HTTP_Session_Replication#WildFly-Specific_Configuration|HTTP Session Replication Configuration]]
</blockquote>
=Elements=
==Root Context==
<pre>
...
<context-root>bank</context-root>
...
</pre>
==Session Timeout==
<pre>
<session-config>
    <session-timeout>60</session-timeout>
</session-config>
</pre>
<blockquote style="background-color: #f9f9f9; border: solid thin lightgrey;">
:[[web.xml#Session_Timeout|<tt>web.xml</tt> Session Timeout]]
</blockquote>

Latest revision as of 04:39, 7 April 2017

Internal

Schema

Available with a WildFly distribution under $JBOSS_HOME/docs/schema/jboss-web_X_Y.xsd.

Example

jboss-web.xml Example

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

HTTP Session Replication Configuration

Elements

Root Context

...
<context-root>bank</context-root>
...

Session Timeout

<session-config>
    <session-timeout>60</session-timeout>
</session-config>
web.xml Session Timeout