DB연결하기

강의노트/웹 2013. 7. 17. 16:41

Servers > context.xml

<Resource

     name = "dbcp/xe"

     auth = "Container"

     type = "javax.sql.DataSource"

     driverClassName = "oracle.jdbc.OracleDriver"

     url = "jdbc:oracle:thin:@192.168.10.130:1521:XE"

     username = "scott"

     password = "tiger"

     maxActive="100"

     maxIdle = "30"

     maxWait = "10000"/>



WEB-INF > web.xml

<resource-ref>   

<description>Oracle Connection Pool</description>

      <res-ref-name>dbcp/xe</res-ref-name>

      <res-type>javax.sql.DataSource</res-type>

      <res-auth>Container</res-auth>

</resource-ref>


'강의노트 > ' 카테고리의 다른 글

WS와 WAS 연결  (0) 2014.03.10
web.xml  (0) 2014.03.10
CSS  (0) 2013.07.15
JSTL XML 태그  (0) 2013.07.11
JSTL SQL 태그  (0) 2013.07.11