Table of Contents
This chapter explains the tags of JEUS configuration plan.
XML schema file:
JEUS_HOME/lib/schemas/jeus/jeus-configuration-plan.xsd
XML references are configured in the following format.
XML Schema/XML Tree: Summarizes all the tags of XML configuration file. Each node is defined in the following format.
Tag reference enables quick search for tags. Each tag is attached with index numbers ( ex: (11) ). Tags are explained with this number in tag reference.
The XML tag name defined in the XML schema is expressed in the format of <tag name>.
Tags are set with cardinality defined in XML schema.
“?” is for 0 or 1 element, “+” is for 1 or more elements, “*” is for 0 or more elements, (no symbol) is for exactly one element
Several tags have "P" character, meaning that they are the tags related to performance. These tags are used to tune the setting.
Element Reference: Explains XML tags in the tree.
Dynamic: Allowed to change the configuration dynamically.
Non-Dynamic: Not allowed to change the configuration dynamically. This is expressed only for the special case to comment out.
Description: A short description for tags.
Value Description: The value and type.
Value Type: Data type of the value. (ex: String)
Value Type Description: Description for the data type of the value.
Default Value: The value to be used by default when the XML is not used.
Defined Value: The default value.
Example: The XML tag example.
Performance Recommendation: The value recommended to improve performance.
Child Elements:The tags contained in its own tag element.
(2) <configurations> ?
(3) <configuration> +
(1)
<jeus-configuration-plan>
| |
Description | JEUS configuration plan. |
Value Type | jeus-configuration-planType |
Child Elements |
(3)
|
(2)
<
jeus-configuration-plan
>
<configurations>
| |
Description | Multiple JEUS configurations. |
Value Type | configurationsType |
Child Elements |
(4)
|
(3)
<
jeus-configuration-plan
><
configurations
>
<configuration>
| |
Description | Configuration unit that will be applied using the JEUS plan. |
Value Type | configurationType |
Child Elements |
(5)
(6)
(7)
|
(4)
<
jeus-configuration-plan
><
configurations
><
configuration
>
<action>
| |
Description | Action type of the configuration. |
Value Type | actionType |
Defined Value |
DELETE REPLACE APPEND_CHILD INSERT_BEFORE |
(5)
<
jeus-configuration-plan
><
configurations
><
configuration
>
<xpath>
| |
Description | XPath to the target element in the XML document where the configuration will be applied. |
Value Type | token |
(6)
<
jeus-configuration-plan
><
configurations
><
configuration
>
<value>
| |
Description | Input value that is required to perform REPLACE, APPEND_CHILD, and INSERT_BEFORE actions. |
Value Type | token |
[Example 26.1] Example File
<?xml version="1.0" encoding="UTF-8"?> <jeus-configuration-plan xmlns="http://www.tmaxsoft.com/xml/ns/jeus"> <configurations> <!-- Replace <name> tag of domain admin server --> <configuration> <action>REPLACE</action> <xpath>/domain/servers/server/name[.='adminServer']</xpath> <value> <![CDATA[<name>das</name>]]> </value> </configuration> <!-- For all servers, remove <listener> tag of which name is "http-listener" --> <configuration> <action>DELETE</action> <xpath>/domain/servers/server/listeners/listener/name[.='http-listener']/..</xpath> </configuration> <!-- Append <jvm-option> tag to server of which name is "das" --> <configuration> <action>APPEND_CHILD</action> <xpath>/domain/servers/server/name[.='das']/../jvm-config</xpath> <value> <![CDATA[<jvm-option>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvm-option>]]> </value> </configuration> <!-- Insert <database> tag before another <database> tag of which data source ID is "ds1" --> <configuration> <action>INSERT_BEFORE</action> <xpath>/domain/resources/data-source/database/data-source-id[.='ds1']/..</xpath> <value> <![CDATA[ <database> <data-source-id>ds0</data-source-id> <data-source-class-name>org.apache.derby.jdbc.ClientConnectionPoolDataSource</data-source-class-name> <data-source-type>ConnectionPoolDataSource</data-source-type> <server-name>localhost</server-name> <port-number>1527</port-number> <database-name>DB1</database-name> <user>app</user> <password>app</password> <property> <name>ConnectionAttributes</name> <type>java.lang.String</type> <value>;create=true</value> </property> </database> ]]> </value> </configuration> </configurations> </jeus-configuration-plan>