JEUS Configuration File

This appendix describes the domain.xml file of JEUS and its configuration items.

1. Overview

To connect OpenFrame GW with JEUS, the server and resource information must be configured in domain.xml in the following path.

${JEUS_HOME}/domains/<domain_name>/config/

2. Adding a Server

Configure the server where OpenFrame GW is installed in the <server> tag of domain.xml.

<server>
     <lifecycle-invocation>
            <class-name>com.tmax.ofgw.Main</class-name>
            <invocation>
               <invocation-method>
                  <method-name>init</method-name>
               </invocation-method>
               <invocation-type>READY</invocation-type>
            </invocation>
     </lifecycle-invocation>
     <lifecycle-invocation>
            <class-name>com.tmax.ofgw.Main</class-name>
            <invocation>
               <invocation-method>
                  <method-name>shutdown</method-name>
               </invocation-method>
               <invocation-type>BEFORE_UNDEPLOY</invocation-type>
            </invocation>
         </lifecycle-invocation>

     <data-sources>
          <data-source>ds1</data-source>
     </data-sources>
</server>

The following describes each item.

Item Description

<lifecycle-invocation>

Various lifecycle events for all the servers in the domain.

<invocation-method>

Invocation method.

<invocation-type>

Time when a method is invoked.

  • READY: When the server starts up and the registered application is deployed and ready for service.

  • BEFORE_UNDEPLOY: When the server starts up and before the registered application is deployed.

<data-sources>

Data sources that can be used on the server.

3. Adding a Resource

Configure the resources used by OpenFrame GW in the <resources> tag of domain.xml.

</servers>
...
<resources>
<data-source>
  <database>
    <data-source-id>ds1</data-source-id>
     <export-name>ds1</export-name>
     <data-source-class-name>com.tmax.tibero.jdbc.ext.TbConnectionPoolDataSource
     </data-source-class-name>
     <data-source-type>ConnectionPoolDataSource</data-source-type>
     <vendor>tibero</vendor>
     <server-name>192.168.33.225</server-name>
     <port-number>7629</port-number>
     <database-name>TVSAM</database-name>
     <user>tibero</user>
     <password>tmax</password>
     <login-timeout>0</login-timeout>
     <auto-commit>DRIVER</auto-commit>
     <stmt-query-timeout>0</stmt-query-timeout>
     <pool-destroy-timeout>10000</pool-destroy-timeout>
     <support-xa-emulation>false</support-xa-emulation>
     <connection-pool>
        <pooling>
           <min>2</min>
           <max>30</max>
           <step>1</step>
           <period>3600000</period>
        </pooling>
        <wait-free-connection>
           <enable-wait>false</enable-wait>
           <wait-time>10000</wait-time>
        </wait-free-connection>
        <max-use-count>0</max-use-count>
        <dba-timeout>-1</dba-timeout>
        <stmt-caching-size>-1</stmt-caching-size>
        <stmt-fetch-size>-1</stmt-fetch-size>
        <connection-trace>
           <enabled>false</enabled>
           <get-connection-trace>true</get-connection-trace>
           <auto-commit-trace>false</auto-commit-trace>
        </connection-trace>
        <use-sql-trace>false</use-sql-trace>
        <keep-connection-handle-open>false</keep-connection-handle-open>
     </connection-pool>
  </database>
  </data-source>
</resources>
...
</domain>

The following describes each tag.

Item Description

<data-source-id>

Data source ID. Set to the value set in <data-source> under <server>.

<export-name>

JNDI name of the data source. If the JNDI name is not set, then the data source ID is used for the JNDI name. Set to the datasource.name in the OpenFrame GW configuration file (ofgw.properties).

<data-source-class-name>

Data source class name of the JDBC driver including the package name.

<data-source-type>

Data source type.

<vendor>

Name of the JDBC driver vendor.

<server-name>

Host name or IP of the database.

<port-number>

Port number of the database listener.

<database-name>

DB user name.

<user>

DB user ID.

<password>

DB user password.

For more information, refer to JEUS XML Reference.