「Java」Tomcat6でOracleデータソースを接続する方法
使用例
<Context path="/sample" reloadable="true" docBase="D:\info\sample" workDir="D:\info\sample\work" >
<Resource name="jdbc/sample" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@xxxx:1521:userDB"
username="cftuser" password="cftuser" maxActive="20" maxIdle="10"
maxWait="-1"/>
</Context>
<Context path="/sample" reloadable="true" docBase="D:\info\sample" workDir="D:\info\sample\work" >
<Resource name="jdbc/sample" auth="Container"
type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver"
url="jdbc:oracle:thin:@xxxx:1521:userDB"
username="cftuser" password="cftuser" maxActive="20" maxIdle="10"
maxWait="-1"/>
</Context>
<Context path="/sample" reloadable="true" docBase="D:\info\sample" workDir="D:\info\sample\work" > <Resource name="jdbc/sample" auth="Container" type="javax.sql.DataSource" driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@xxxx:1521:userDB" username="cftuser" password="cftuser" maxActive="20" maxIdle="10" maxWait="-1"/> </Context>