JSP/Tomcat 6.0 설정
context.xml 수정
하얀소닉
2012. 6. 7. 16:50
<context>
<Resource name="jdbc/mysqlmulti"
auth="Container"
driverClassName="com.mysql.jdbc.Driver"
type="javax.sql.DataSource"
url="jdbc:mysql://localhost:3306/mymulti"
username="root"
password="manager2"
maxActive="500"
maxIdle="100"
maxWait="-1"/>
</context>
--프로젝트내/WEB-INF/web.xml--
<resource-ref>
<description>Connection</description>
<res-ref-name>jdbc/mysqlmulti</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>