http://jakarta.apache.org/commons/dbcp/downloads.html

Commons-DBCP ,  Commons-pool  ,  Commons-Collections

Context의 WEB-INF/lib 로 복사

struts-config.xml에 아래 내용 추가

  <data-sources>

<data-source key="oracle" type="org.apache.commons.dbcp.BasicDataSource">

<set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver" />

             <set-property property="username" value="scott" />

             <set-property property="password" value="tiger" />

             <set-property property="url" value="jdbc:oracle:thin:@localhost:1521:ORCL" />

             <set-property property="maxActive" value="50" />

             <set-property property="maxIdle" value="10000" />

             <set-property property="maxWait" value="100" />

             <set-property property="defaultAutoCommit" value="true" />

   <set-property property="defaultReadOnly" value="false"/>
             <set-property property="validationQuery" value="select * from membership"/>
     </data-source>

  </data-sources> 


출처  : 
http://blog.naver.com/abj1/30019717356

'FRAMEWORK' 카테고리의 다른 글

struts2 - TagLibrary  (0) 2010.09.01
struts2 - 액션클래스 비교.  (0) 2010.08.27
struts - UTF-8 설정 (인코딩설정)  (0) 2010.08.26
EJB EntityBeans  (0) 2009.09.18
[Struts] JDBC 사용하기.  (0) 2008.04.22
[1.3] struts-config.xml NutShell  (0) 2008.04.15

+ Recent posts