Chapter 26. Configuring a JEUS Configuration Plan

Table of Contents

26.1. Introduction
26.2. XML Schema/XML Tree
26.3. Element Reference
26.4. Example File

This chapter explains the tags of JEUS configuration plan.

XML references are configured in the following format.

  1. XML Schema/XML Tree: Summarizes all the tags of XML configuration file. Each node is defined in the following format.

    1. 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.

    2. The XML tag name defined in the XML schema is expressed in the format of <tag name>.

    3. 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

    4. Several tags have "P" character, meaning that they are the tags related to performance. These tags are used to tune the setting.

  2. Element Reference: Explains XML tags in the tree.

    1. Dynamic: Allowed to change the configuration dynamically.

    2. Non-Dynamic: Not allowed to change the configuration dynamically. This is expressed only for the special case to comment out.

    3. Description: A short description for tags.

    4. Value Description: The value and type.

    5. Value Type: Data type of the value. (ex: String)

    6. Value Type Description: Description for the data type of the value.

    7. Default Value: The value to be used by default when the XML is not used.

    8. Defined Value: The default value.

    9. Example: The XML tag example.

    10. Performance Recommendation: The value recommended to improve performance.

    11. Child Elements:The tags contained in its own tag element.

(1) <jeus-configuration-plan>
Description JEUS configuration plan.
Value Type jeus-configuration-planType
Child Elements

(3) configurations

(2) < jeus-configuration-plan > <configurations>
Description Multiple JEUS configurations.
Value Type configurationsType
Child Elements

(4) configuration

(3) < jeus-configuration-plan >< configurations > <configuration>
Description Configuration unit that will be applied using the JEUS plan.
Value Type configurationType
Child Elements

(5) action

(6) xpath

(7) value

(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>