... *Back to [[Book|Administrator's Configuration File Reference#cfr]] [[Topic|Administrator's Configuration File Reference#chap3]]* h2. {{server.xml}} elements beginning with E
The following elements are discussed below:
|[#{{env-variable}}] |[#{{event}}] |[#{{external-jndi-resource}}] |
|
h3. {{env-variable}} {anchor:e1}
|
| The {{env-variable}} element defines an environment variable. This element may appear zero or one time within the {{cgi}} element. For more information, see
[#cgi].
[{{cgi}}|C#c1]. |
h4. Subelements |
... The {{env-variable}} element can contain the following subelements:
Table 3-18 List of {{env-variable}} Subelements ||Element ||Occurrences ||Description || |{{name}} |1 |The name of the environment variable | |{{value}} |1 |The value of the environment variable | |{{description}} |0 or 1 |The description of the environment variable |
|
h4. See Also
|
| [#{{variable}}] |
| [{{variable}}|V & W#v1] |
h3. {{event}} {anchor:e2}
|
| The {{event}} element configures a recurring event. This element may appear zero or more times within the {{server}} element. For more information, see
[#server].
[{{server}}|S#s3]. |
h4. Subelements |
... The {{event}} element can contain the following subelements:
Table 3-19 List of {{event}} Subelements
|
||Element ||Occurrences ||Description || |{{enabled}} |0 or 1 |Determines whether the event is enabled at runtime. The default value is {{true}}. | |
| |{{time}} |0 or more |Configures a specific time when the event occurs. For more details, see
[#time].
[{{time}}|T#t2].
| |
|{{interval}} |0 or 1 |The interval (in seconds) at which the event occurs. The value can be from 60 to 86400. | |{{rotate-log}} |0 or 1 |Rotates the log files. The default value is {{false}}. | |
... |{{rotate-access-log}} |0 or 1 |Rotates the access log files. The default value is {{false}}. | |{{command}} |0 or more |The command to execute when the event runs. | |{{reconfig}} |0 or 1 |Dynamically reconfigures the server. The default value is {{false}}. | |{{restart}} |0 or 1 |Restarts the server. The default value is {{false}}. | |{{description}} |0 or 1 |The description of the event. The value of this element is in text format. | |
h4. See Also |
* [#{{access-log}}] * [#{{log}}] |
* [{{access-log}}|A#a1] * [{{log}}|K & L#l4] |
h3. {{external-jndi-resource}} {anchor:e3}
|
| The {{external-jndi-resource}} element configures a resource provided by an external JNDI repository. This element may appear zero or more times within the {{server}} element. For more information, see
[#server].
[{{server}}|S#s3]. |
h4. Subelements |
... The {{external-jndi-resource}} element can contain the following subelements:
Table 3-20 List of {{external-jndi-resource}} Subelements ||Element ||Occurrences ||Description || |{{enabled}} |0 or 1 |Determines whether the event is enabled at runtime. The default value is {{true}}. | |{{jndi-name}} |1 |The JNDI name of the resource. | |{{jndi-lookup-name}} |1 |The JNDI lookup name of the resource. |
|
|{{res-type}} |1 |The type of the external JNDI resource. The default value is a class name. | |{{factory-class}} |1 |The class that instantiates resources of this type. The default value is a class name that implements {{javax.naming.spi.InitialContextFactory}}. | |
| |{{property}} |0 or more |Configures the optional resource-specific properties. For more details, see
[#property].
[{{property}}|P#p3].
| |
| |{{description}} |0 or 1 |The description of the resource. The value of this element should be in text format. | |