Appendix A. Environment Configuration Example

Table of Contents

A.1. Basic Configuration
A.2. WebtoB and JEUS Integration Configuration
A.2.1. JEUS 6 Integration Configuration
A.2.2. Embedded Servlet Engine Integration Configuration (JEUS 7)

This appendix provides examples of a basic environment file and an environment file for integrating with JEUS.

A.1. Basic Configuration

The following is a basic WebtoB environment configuration file without JEUS integration.

*DOMAIN
webtob

*NODE
mynode
  WebtoBDIR = "$WEBTOBDIR",
  SHMKEY = 56000,
  Dcoroot = "docs/",
  Port = "8080",
  HTH = 1,
  Logging = "accesslog",
  ErrorLog = "errorlog",
  SysLog = "systemlog"

*HTH_THREAD
hworker
  WorkerThreads = 8

*SVRGROUP
cgig
  NodeName = mynode,
  SvrType = CGI
ssig
  NodeName = mynode,
  SvrType = SSI

*SERVER
cgi
  SvgName = cgig,
  MinProc = 4,
  MaxProc = 10
ssi
  SvgName = ssig,
  MinProc = 2,
  MaxProc = 10

*URI
cgi_bin
  Uri = "/cgi-bin/",
  Svrtype = CGI

*EXT
htm
  Mimetype = "text/html",
  SvrType = HTML

*ALIAS
alias
  Uri = "/cgi-bin/",
  Realpath = "${WEBTOBDIR}/cgi-bin/"

*LOGGING
accesslog
  Format = "default",
  Filename = "log/access_%Y%%M%%D%.log"
errorlog
  Format = "ERROR",
  Filename = "log/error_%Y%%M%%D%.log"
systemlog
  Format = "SYSLOG",
  Filename = "log/system_%Y%%M%%D%.log"

A.2. WebtoB and JEUS Integration Configuration

The following is an example of a WebtoB environment configuration file used for JEUS integration.

*DOMAIN
webtob

*NODE
mynode
  WebtoBDir = "$WEBTOBDIR",
  SHMKEY = 84565,
  Docroot = "docs/",
  Port = "8080",
  HTH = 1,
  Logging = "accesslog",
  ErrorLog = "errorlog",
  SysLog = "systemlog",
  JsvPort = 9999

*HTH_THREAD
hworker
  WorkerThreads = 8

*SVRGROUP
htmlg
  NodeName = mynode,
  SvrType = HTML
jsvg
  NodeName = mynode,
  SvrType = JSV

*SERVER
MyGroup
  SvgName = jsvg,
  Minproc = 10,
  MaxProc = 10

*URI
examples
  Uri = "/examples/",
  SvrType = JSV

*EXT
htm
  Mimetype = "text/html",
  SvrType = HTML
html
  Mimetype = "text/html",
  SvrType = HTML
jsp
  Mimetype = "application/jsp",
  SvrType = JSV

*LOGGING
accesslog
  Format = "default",
  Filename = "log/access_%Y%%M%%D%.log",
  Option="Sync"
errorlog
  Format = "ERROR",
  Filename = "log/error_%Y%%M%%D%.log"
systemlog
  Format = "SYSLOG",
  Filename = "log/system_%Y%%M%%D%.log"

A.2.1. JEUS 6 Integration Configuration

The following is an example of a JEUS environment configuration file. Configure <webtob-listen> for WebtoB integration.

<WEBMain.xml>

<!-- JEUS Configuration File -->
<?xml version="1.0"?>
<!DOCTYPE web-container PUBLIC "-//Tmax Soft., Inc.//DTD WEB Main Config 4.0//EN"
                       "http://www.tmaxsoft.com/jeus/dtd/4.0/web-main-config.dtd">
<web-container>
    <context-group>
        <group-name>MyGroup</group-name>
        <group-docbase>webapps</group-docbase>
        <session-config>
            <timeout>20</timeout>
            <shared>true</shared>
        </session-config>
        <logging>
            <error-log>
                <target>stdout</target>
                <level>information</level>
                <buffer-size>0</buffer-size>
                <valid-day>1</valid-day>
            </error-log>
            <user-log>
                <target>file</target>
                <buffer-size>0</buffer-size>
                <valid-day>1</valid-day>
            </user-log>
            <access-log>
                <target>file</target>
                <buffer-size>0</buffer-size>
                <valid-day>1</valid-day>
                <log-format>
                    <time-format>default</time-format>
                </log-format>
            </access-log>
        </logging>
        <context>
            <context-name>examples</context-name>
            <context-path>/examples</context-path>
        </context>
        <context>
            <context-name>test</context-name>
            <context-path>/test</context-path>
        </context>
        <webserver-connection>
<!--
            <http-listener>
                <listener-id>http1</listener-id>
                <port>8989</port>
                <output-buffer-size>8192</output-buffer-size>
                <thread-pool>
                    <min>25</min>
                    <max>30</max>
                    <step>2</step>
                    <max-idle-time>1000</max-idle-time>
                </thread-pool>
            </http-listener>
-->
            <webtob-listener>
                <listener-id>webtob1</listener-id>
                <port>9999</port>
                <hth-count>1</hth-count>
                <webtob-address>192.168.1.43</webtob-address>
                <registration-id>MyGroup</registration-id>
                <thread-pool>
                    <min>10</min>
                    <max>10</max>
                    <step>2</step>
                </thread-pool>
                <disable-pipe>true</disable-pipe>
            </webtob-listener>               
        </webserver-connection>
    </context-group>
</web-container>

A.2.2. Embedded Servlet Engine Integration Configuration (JEUS 7)

The following is an example of an environment configuration file used for integration with an embedded Servlet engine. Configure <webtob-connector> for WebtoB connection.

<domain.xml>

<!-- JEUS 7(Embedded servlet engine) configuration file -->
<?xml version="1.0" encoding="UTF-8"?>
<domain xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="7.0">
   <id>8322013</id>
   <admin-server-name>adminServer</admin-server-name>
   <servers>
      <server>
         <name>adminServer</name>

         <listeners>
            <base>base</base>
            <listener>
               <name>base</name>
               <listen-address>0.0.0.0</listen-address>
               <listen-port>9736</listen-port>
               <use-nio>true</use-nio>
               <use-dual-selector>false</use-dual-selector>
               <backlog>128</backlog>
               <read-timeout>30000</read-timeout>
               <reserved-thread-num>0</reserved-thread-num>
            </listener>
            <listener>
               <name>http-server</name>
               <listen-port>8088</listen-port>
               <use-nio>true</use-nio>
               <use-dual-selector>false</use-dual-selector>
               <backlog>128</backlog>
               <read-timeout>30000</read-timeout>
               <reserved-thread-num>0</reserved-thread-num>
            </listener>
         </listeners>

         <web-engine>
            <web-connections>
               <webtob-connector>
                  <name>webtob</name>
                  <output-buffer-size>8192</output-buffer-size>
                  <postdata-read-timeout>30000</postdata-read-timeout>
                  <max-post-size>-1</max-post-size>
                  <max-parameter-count>-1</max-parameter-count>
                  <max-header-count>-1</max-header-count>
                  <max-header-size>-1</max-header-size>
                  <max-querystring-size>8192</max-querystring-size>
                  <network-address>
                     <port>9999</port>
                     <ip-address>localhost</ip-address>
                  </network-address>
                  <thread-pool>
                     <number>10</number>
                     <thread-state-notify>
                        <max-thread-active-time>0</max-thread-active-time>
                        <interrupt-thread>false</interrupt-thread>
                        <active-timeout-notification>false</active-timeout-notification>
                        <notify-threshold-ratio>0.0</notify-threshold-ratio>
                        <restart-threshold-ratio>0.0</restart-threshold-ratio>
                     </thread-state-notify>
                  </thread-pool>
                  <hth-count>1</hth-count>
                  <registration-id>MyGroup</registration-id>
                  <reconnect-interval>5000</reconnect-interval>
               </webtob-connector>               
<!--
               <http-listener>
                  <name>http1</name>
                  <output-buffer-size>8192</output-buffer-size>
                  <postdata-read-timeout>30000</postdata-read-timeout>
                  <scheme>http</scheme>
                  <max-post-size>-1</max-post-size>
                  <max-parameter-count>-1</max-parameter-count>
                  <max-header-count>-1</max-header-count>
                  <max-header-size>-1</max-header-size>
                  <max-querystring-size>8192</max-querystring-size>
                  <server-listener-ref>http-server</server-listener-ref>
                  <thread-pool>
                     <min>10</min>
                     <max>20</max>
                     <max-idle-time>300000</max-idle-time>
                     <max-queue>-1</max-queue>
                  </thread-pool>
                  <keep-alive>true</keep-alive>
                  <server-access-control>false</server-access-control>
               </http-listener>
-->
            </web-connections>
         </web-engine>

      </server>
   </servers>
</domain>