프로그래밍-2/server

Jeus6, WebtoB4.1 연동을 위한 설정 - 1. JEUSMain.xml

daslyee 2021. 8. 19. 22:44
728x90

* 테스트를 위해 Jeus6, WebtoB4.1, 이클립스를 설치하여 테스트를 진행했다.

Jeus와 WebtoB, 이클립스 설치는 이전 글을 참고하여 설치하도록 한다.

기초적으로 셋팅해야 할 파일 중

JEUSMain.xml, http.m, WEBMain.xml, jeus-web-dd.xml, rewrite_.cfg 을 기술할 예정이다.

 

제우스와 웹투비를 연결하기 위해서는 약간의 설정이 필요하다.

프로젝트마다 환경 및 성향이 다르므로 참고용으로만 보길 바란다.

 

우선 환경은 대략적으로 이클립스 프로젝트를 제우스6.0과 웹투비4.1로 웹에 띄울 것이다. 

제우스와 웹투비 모두 D:\ 에 설치하였으며, D:\JEUS , D:\WEBTOB 폴더에 설치하였다.

프로젝트 export 산출물은 D:\UP 에 저장하였다.

 

설명 : 

jeus 설치 폴더의 config 안에 hostname 안에 JEUSMain.xml

 

<engine-container>와 <application>서로 쌍으로 생각하면 된다.

<engine-container>와 <application>은 여러개 생길 수 있음으로

id,와 name, base-port, path 등등 중복되지 않게 조심한다. 

 

DB연결 환경은 이클립스 프로젝트에서 설정을 저장하였음으로 별다른 DB연결은 주석처리하였다.

hostname은 말그대로 본인컴퓨터의 hostname 이다. (cmd에서 hostname이라고 치면 나온다.)

아래 설정에서 추가하고 싶은 기능이 있다면 인터넷 검색 후 추가해보는 것도 공부하는 방법일 듯하다.

 

JEUSMain.xml <application> <name> 

http.m의 server

WEBMain.xml <registration-id> <group-name>동일 값 (UPTEST02Group)

 

JEUSMain.xml<application> <context-root>

http.m의 uri  Uri = "/uptest02"

jeus-web-dd.xml<context-path>

rewrite_.cfgRewriteRule ^/$ /uptest02/$1 [L] 는 동일 값 (uptest02)

 

 

테스트는 localhost(127.0.0.1)에서 진행할 예정이다.

 

1. JEUSMain.xml

 

<?xml version="1.0" encoding="UTF-8"?><jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
   <node>
      <name>hostname</name>
      <engine-container>
         <name>ContainerUPTEST02</name>
         <id>02</id>
         <base-port>10002</base-port>
         <command-option>-Xms1024m -Xmx1024m -XX:MaxPermSize=128m -Djeus.servlet.response.header.serverinfo=false</command-option>
         <engine-command>
            <type>ejb</type>
            <name>engine2</name>
         </engine-command>
         <engine-command>
            <type>servlet</type>
            <name>engine2</name>
         </engine-command>
         <sequential-start>true</sequential-start>
         <system-logging>
            <level>INFO</level>
            <handler>
               <file-handler>
                  <name>fileHandler</name>
                  <valid-day>1</valid-day>
               </file-handler>
            </handler>
         </system-logging>
      </engine-container>
      <class-ftp>true</class-ftp>
      <sequential-start>true</sequential-start>
      <enable-webadmin>true</enable-webadmin>
   <webadmin-config>
 <allowed-server>localhost</allowed-server>
 <allowed-server>127.0.0.1</allowed-server>
</webadmin-config>
      <system-logging>
         <level>INFO</level>
         <handler>
            <file-handler>
               <name>fileHandler</name>
               <valid-day>1</valid-day>
            </file-handler>
         </handler>
      </system-logging>
   </node>
   <resource>
     !--<data-source>
            <database>
                <vendor>mssql</vendor>
                <export-name>jndi/UPTEST01</export-name>
                <data-source-class-name>com.microsoft.sqlserver.jdbc.SQLServerConnectionPoolDataSource</data-source-class-name>
                <data-source-type>ConnectionPoolDataSource</data-source-type>
                <database-name>UPTEST01</database-name>
                <port-number>1111</port-number>
                <server-name>11.11.11.11</server-name>
                <user>DBUSER</user>
                <password>12345678</password>
                <action-on-connection-leak>AutoClose</action-on-connection-leak>
                <connection-pool>
                    <pooling>
                        <min>10</min>
                        <max>30</max>
                        <step>1</step>
                        <period>3600000</period>
                    </pooling>
                    <check-query>SELECT 1</check-query>
                    <check-query-timeout>3000</check-query-timeout>
                    <non-validation-interval>5000</non-validation-interval>
                    <check-query-period>3000</check-query-period>
                </connection-pool>
            </database>         
        </data-source>-->
   </resource>  
   <application>
      <name>TEST02</name>
      <path>D:\UP\TEST02</path>
      <deployment-type>COMPONENT</deployment-type>
      <web-component>
         <context-root>/uptest02</context-root>
      </web-component>
      <deployment-target>
         <target>
            <engine-container-name>hostname_ContainerUPTEST02</engine-container-name>
            <web-context-group>
               <name>UPTEST02Group</name>
            </web-context-group>
         </target>
      </deployment-target>
   </application>
</jeus-system>
728x90