환경설정 파일 예제
본 부록에서는 기본 환경설정 파일과 JEUS 연동을 위한 환경설정 파일의 예제를 제공한다.
1. 기본 환경설정 파일
다음은 JEUS와 연동하지 않는 기본 WebtoB 환경설정 파일에 대한 예제이다.
*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"
2. WebtoB와 JEUS 연동 환경설정 파일
다음은 JEUS에 연결된 경우 WebtoB 환경설정 파일에 대한 예제이다.
*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"
2.1. JEUS 6 연동 환경설정
다음은 JEUS 6 환경설정 파일 예제로 WebtoB 연결은 <webtob-listener>에 설정한다.
<WEBMain.xml>
<!-- JEUS의 설정파일 --> <?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>
2.2. 내장 Servlet Engine(JEUS 8) 연동 환경설정
다음은 내장 Servlet Engine을 연동하는 경우 환경설정 파일의 예제로 WebtoB 연결은 <webtob-connector>에 설정한다.
<domain.xml>
<!-- JEUS 8(내장 servlet engine)의 설정파일 --> <?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-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-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> <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>