'IT/Jeus'에 해당하는 글 1건



http://frody.tistory.com 블로그에서 WEBTOB, JEUS 컨테이너 추가방법만 정리하였습니다.


1.webtob 환경설정
config 디렉토리내 http.m 혹은 XXXX.m 화일. 그룹명을 Vgroup으로 하였다.

*DOMAIN
jeuservice

*NODE
localhost    
  WEBTOBDIR = "/XXX/XXX/webtob", #webtob 설치경로
  SHMKEY    = 54000,
  DOCROOT   = "/XXX/XXX/webtob/docs", #기본 경로... 
  PORT      = "8090", 
  LOGGING   = "log1",
  ERRORLOG  = "log2",
  JSVPORT   = 9900,
  HTH       = 1
  

*SVRGROUP
htmlg       NODENAME = "localhost", SVRTYPE = HTML
cgig        NODENAME = "localhost", SVRTYPE = CGI
ssig        NODENAME = "localhost", SVRTYPE = SSI
jsvg        NODENAME = "localhost", SVRTYPE = JSV
vjsvg        NODENAME = "localhost", SVRTYPE = JSV, VHOSTNAME = vhost1

*SERVER
html        SVGNAME  = htmlg, MinProc = 1,  MaxProc = 2, ASQCount = 1
cgi         SVGNAME  = cgig,  MinProc = 1,  MaxProc = 2
ssi         SVGNAME  = ssig,  MinProc = 1,  MaxProc = 2
MyGroup     SVGNAME  = jsvg,  MinProc = 1,  MaxProc = 5
Vgroup     SVGNAME  = vjsvg,  MinProc = 1,  MaxProc = 5

*URI
uri1        Uri      = "/cgi-bin/",  Svrtype = CGI
uri2        Uri      = "/examples", Svrtype = JSV
uri3        Uri      = "/exploded", Svrtype = JSV
uri4        Uri      = "/", Svrtype = JSV

*ALIAS
alias1      URI      = "/cgi-bin/", RealPath = "/XXX/XXX/webtob/cgi-bin/"

*LOGGING
log1        Format   = "DEFAULT",   FileName = "/XXX/XXX/webtob/log/access.log", Option = "sync"
log2        Format   = "ERROR",     FileName = "/XXX/XXX/webtob/log/error.log",  Option = "sync"

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

*VHOST
vhost1      DOCROOT = "/AAA/BBB", #홈페이지 저장경로
            NODENAME = "localhost",
            HOSTNAME = "도메인명",  #도메인명
            PORT = "8090"


2. jues 환경설정

   1). config/localhost 디렉토리에서 
       localhost_servlet_engine2 디렉토리 내에 JEUSMain.xml 파일을 수정한다. 빨간색이 추가된부분이다.

<?xml version="1.0" encoding="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
    <node>
        <name>frody-ubuntu</name>
        <class-ftp>true</class-ftp>
        <sequential-start>true</sequential-start>
        <enable-webadmin>true</enable-webadmin>
        <engine-container>
            <name>container1</name>
        <command-option>-Xms256m -Xmx512m -XX:MaxPermSize=128m</command-option>
            <sequential-start>true</sequential-start>
            <engine-command>
                <type>ws</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>jms</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>ejb</type>
                <name>engine1</name>
            </engine-command>
            <engine-command>
                <type>servlet</type>
                <name>engine1</name>
            </engine-command>
        </engine-container>
        <engine-container>
            <name>container2</name>
        <command-option>-Xms256m -Xmx512m -XX:MaxPermSize=128m</command-option>
            <sequential-start>true</sequential-start>
            <engine-command>
                <type>servlet</type>
                <name>engine2</name>
            </engine-command>
        </engine-container>
    </node>
    <application>
        <name>examples</name>
        <path>examples.ear</path>
        <deployment-target>
               <target>
                <engine-container-name>frody-ubuntu_container1</engine-container-name>
                <web-context-group>
                    <name>MyGroup</name>
                </web-context-group>
            </target>
        </deployment-target>
        <deployment-type>EAR</deployment-type>
    </application>
    <application>
        <name>exploded</name>
        <path>exploded</path>
        <deployment-type>COMPONENT</deployment-type>
        <web-component/>
        <deployment-target>
            <target>
                <engine-container-name>frody-ubuntu_container1</engine-container-name>
            </target>
        </deployment-target>
    </application>
    <application>
        <name>/</name>
        <path>/AAA/BBB</path> <!-- 홈페이지 저장 경로 -->
        <deployment-type>COMPONENT</deployment-type>
        <deployment-target>
            <target>
                <engine-container-name>frody-ubuntu_container2</engine-container-name>
                <web-context-group>
                    <name>Vgroup</name>
                </web-context-group>
            </target>
        </deployment-target>
        <web-component/>
    </application>
</jeus-system>


   2). localhost_servlet_engine1 디렉토리를 통째로 localhost_servlet_engine2 로 복사한다
       - WEBMain.xml 을 수정한다.

<?xml version="1.0"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus" version="6.0">
    <context-group>
        <group-name>Vgroup</group-name>
        <webserver-connection>
            <!-- 제거
            <http-listener>
                <listener-id>http1</listener-id>
                <port>8098</port>
                <thread-pool>
                    <min>10</min>
                    <max>20</max>
                    <step>1</step>
                </thread-pool>
            </http-listener>
        -->
            <webtob-listener>
                <listener-id>webtob1</listener-id>
                <port>9900</port>
                <output-buffer-size>8192</output-buffer-size>
                <thread-pool>
                   <min>1</min>
                   <max>5</max>
                   <step>1</step>
                   <max-idle-time>30000</max-idle-time>
                </thread-pool>
                <webtob-address>localhost</webtob-address> <!-- socket으로 연결할경우 경로를 입력한다.  -->
                <registration-id>Vgroup</registration-id>
            </webtob-listener>
        </webserver-connection>
        <logging>
            <access-log>
                <handler>
                    <file-handler>
                        <name>handler1</name>
                        <valid-day>1</valid-day>
                    </file-handler>
                </handler>
            </access-log>
        </logging>
    </context-group>
</web-container>



출처 : http://frody.tistory.com/93


WRITTEN BY
Dukejin
If you don't walk today, you will have to run tomorrow. Try hard, Try hard!

,