즐겨찾기   
 
   
 
 
 

  모듈 사용 방법
    * Bright Spring Version 

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

  개발 지원
    * Q&A
 
 
 

 



Bright > 모듈 환경 세팅  > 환경 파일 설정 > bright-config.xml 설정  
 
 1.bright-config.xml 설정
 /WEB-INF 밑에 bright-config.xml를  아래 처럼 정의한다.
 
<?xml version="1.0" encoding="UTF-8"?>
<bright-config> 
  <!--
      ==============================================================================
      ※ Bright 데이타베이스 환경 정보 세팅 ※
      ==============================================================================
      ⊙ type
          net.mymyboard.framework.bright.pool.DriverConnectionPool
           -> 직접 JDBC 연결(default)  Pool
          net.mymyboard.framework.bright.pool.WasJNDIConnectionPool
          ->Tomcat,Resin,Etc Was Server  JNDI(Java Naming and Directory Interface)  Pool
          net.mymyboard.framework.bright.pool.InitialContextJNDIConnectionPool
          ->InitialContex를 사용한 JNDI 환경의 Properties Setup  Pool
          net.mymyboard.framework.bright.pool.NamedLookUpJNDIConnectionPool
          ->Context를 사용한 Named Object의 LookUp  Pool
          ※-설정된 Pool 클래스는 메모리에 단 한번 할당 후 재사용됨.-※
      ⊙ database
          사용 데이타 베이스가 oracle이면 oracle,mysql이면 mysql 로 세팅한다.
      ⊙ useOn
          사용 여부 true면 메모리에 올라와서 사용,false면 비 사용.
   -->
  
  <Connection id="MyCon" database="oracle"
    type="net.mymyboard.framework.bright.pool.DriverConnectionPool" useOn="true">
     <!-- Connection INFO-->
     <INFO>
        <driver>oracle.jdbc.driver.OracleDriver</driver>
        <url>jdbc:oracle:thin:@127.0.0.1:1521:orcl</url>
        <user>UserName</user>
        <password>Password</password>
     </INFO> 
  </Connection>
 
  <Connection id="JNDICon" database="oracle"
     type="net.mymyboard.framework.bright.pool.WasJNDIConnectionPool" useOn="true">
     <!-- Tomcat,Resin,Etc Was Server-->
     <JNDI>
        <name>Bright_DB</name>
     </JNDI>
   </Connection>    
  
  <Connection id="InitialContextJNDI" database="oracle"
     type="net.mymyboard.framework.bright.pool.InitialContextJNDIConnectionPool"
     useOn="true">
     <!-- WebLogic Was Server
     <JNDI>
        <name>Bright_DB</name>
        <ContextFactory>weblogic.jndi.T3InitialContextFactory</ContextFactory>
        <ProviderUrl>t3://localhost:7001</ProviderUrl>
       
     </JNDI>
     -->
     <!-- Jeus Was Server
     <JNDI>
        <name>Bright_DB</name>
        <ContextFactory>jeus.jndi.JEUSContextFactory</contextFactory>
        <ProviderUrl>t3://localhost:7001</ProviderUrl>
     </JNDI>
      -->
     <JNDI>
        <name>Bright_DB</name>
        <ContextFactory>weblogic.jndi.T3InitialContextFactory</ContextFactory>
        <ProviderUrl>t3://localhost:7001</ProviderUrl>
        <URL_PKG_Prefixes>jeus.jndi.jns.url</URL_PKG_Prefixes>
        <Security_Principal>UserName</Security_Principal>
        <Security_Credentials>Password</Security_Credentials>
     </JNDI> 
   </Connection>  
  
  
   <Connection id="NamedLookUpJNDI" database="oracle"
     type="net.mymyboard.framework.bright.pool.NamedLookUpJNDIConnectionPool"
      useOn="true">
     <!-- WebLogic,Jeus Was Server-->
     <JNDI>
        <name>Bright_DB</name>
     </JNDI>
   </Connection>     
</bright-config>
 
 
 
 



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