본 부록에서는 기본 환경설정 파일과 JEUS 연동을 위한 환경설정 파일의 예제를 제공한다.
다음은 JEUS와 연동하지 않는 기본 WebtoB 환경설정 파일에 대한 예제이다.
*DOMAIN webtob *NODE mynode WebtoBDIR = "$WEBTOBDIR", SHMKEY = 56000, Dcoroot = "docs/", Port = "8080", HTH = 1, Logging = "accesslog", ErrorLog = "errorlog", SysLog = "systemlog" *SVRGROUP htmlg NodeName = mynode, SvrType = HTML cgig NodeName = mynode, SvrType = CGI ssig NodeName = mynode, SvrType = SSI *SERVER html SvgName = htmlg, MinProc = 2, MaxProc = 10 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 = "", Filename = "log/error_%Y%%M%%D%.log" systemlog Format = "", Filename = "log/system_%Y%%M%%D%.log"
다음은 JEUS에 연결된 경우 WebtoB 환경설정 파일에 대한 예제이다.
*DOMAIN webtob *NODE mynode WebtoBDir = "$WEBTOBDIR", SHMKEY = 84565, Docroot = "docs/", Port = "8080", HTH = 1, Logging = "accesslog", ErrorLog = "errorlog", SysLog = "systemlog", JsvPort = 9999 *SVRGROUP htmlg NodeName = mynode, SvrType = HTML jsvg NodeName = mynode, SvrType = JSV *SERVER html SvgName = htmlg, MinProc = 10, MaxProc = 10 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 = "", Filename = "log/error_%Y%%M%%D%.log" systemlog Format = "", Filename = "log/system_%Y%%M%%D%.log"
다음은 JEUS 환경설정 파일 예제로 WebtoB 연결은 <webtob-listen>에 설정한다.
<!-- JEUS 4의 설정파일 --> <?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>4</min> <max>10</max> <step>2</step> </thread-pool> <disable-pipe>true</disable-pipe> </webtob-listener> </webserver-connection> </context-group> </web-container>
다음은 내장 Servlet 엔진을 연동하는 경우 환경설정 파일의 예제이다.
<!-- JEUS 6(내장 servlet engine)의 설정파일 -->
<?xml version="1.0"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-group>
<group-name>MyGroup</group-name>
<group-docbase>webapps</group-docbase>
<print-error-to-browser>true</print-error-to-browser>
<webserver-connection>
<webtob-listener>
<webtob-home>/data2/wbqam/webtob</webtob-home>
<listener-id>webtob1</listener-id>
<port>9900</port>
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>4</min>
<max>10</max>
<step>1</step>
</thread-pool>
<webtob-address>localhost</webtob-address>
<registration-id>MyGroup</registration-id>
</webtob-listener>
</webserver-connection>
</context-group>
</web-container>