当前位置: 技术问答>java相关
那位大侠能给我一个tomcat中使用连接池的例子,谢谢。
来源: 互联网 发布时间:2015-05-19
本文导语: 我从tomcat 4.0.3的帮助中看到JNDI Resources HOW-TO中相关内容提到:NOTE - The default data source support in Tomcat supports Tyrex. However, it is possible to use any other connection pool that implements javax.sql.DataSource, by writing your...
我从tomcat 4.0.3的帮助中看到JNDI Resources HOW-TO中相关内容提到:NOTE - The default data source support in Tomcat supports Tyrex. However, it is possible to use any other connection pool that implements javax.sql.DataSource, by writing your own custom resource factory, as described below.
那我怎样用其他的连接池呢?例如:oracle的jdbc中的连接池?
那我怎样用其他的连接池呢?例如:oracle的jdbc中的连接池?
|
哎,给你一个吧。多看看帮助:
user
taoy
password
112233
driverClassName
oracle.jdbc.driver.OracleDriver
driverName
jdbc:oracle:thin:@localhost:1521:oracledb
记着给分。呵呵
user
taoy
password
112233
driverClassName
oracle.jdbc.driver.OracleDriver
driverName
jdbc:oracle:thin:@localhost:1521:oracledb
记着给分。呵呵