즐겨찾기   
 
   
 
 
 

  모듈 사용 방법
    * Bright Spring Version 

  모듈 환경 세팅
    * 모듈 배치
     - bright-config.xml
     - struts-config.xml
     - web.xml
     - Tomcat 설정
    * Eclipse 설정

  개발 지원
    * Q&A
 
 
 

 



Bright > 모듈 환경 세팅  > JNDI Connection 설정 > Tomcat 설정  
 
 1.Tomcat server.xml 설정
 /Tomcat 설치폴더/conf 밑에 server.xml를  아래 빨간색 처럼 정의를 추가한다.
 
  <!-- Global JNDI resources -->
  <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />
 
    <Resource name="Bright_DB" auth="Container"
                  type="javax.sql.DataSource"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  url="jdbc:oracle:thin:@127.0.0.1:1521:orcl"
                  username="UserName"
                  password="Password"
                  maxActive="20"
                  maxIdle="10"
                  maxWait="-1" /> 

  </GlobalNamingResources>
 
 
 2.Tomcat context.xml 설정
 /Tomcat 설치폴더/conf 밑에 context.xml를  아래 빨간색 처럼 정의를 추가한다.
 
<Context>
    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
 
    <!-- Uncomment this to disable session persistence across Tomcat restarts -->
    <!--
    <Manager pathname="" />
    -->
 <ResourceLink global="Bright_DB" name="Bright_DB"
   type="javax.sql.DataSource" />
 
</Context>
 
 
 
 



  Copyright 2008-2011 (c) G-line Communications Corp All Rights Reserved.