tomcat 5.5.23连接池的问题

来源:互联网 发布:windows power shell 编辑:程序博客网 时间:2024/04/30 21:28
折腾了一上午,总算找到了答案!

不同的版本连接池配置的方法不一样,另外不要按tomcat主页上的配置来做 ,完全是误导我们!

只需要在E:/apache-tomcat-5.5.23/conf下的context.xml里面加上
<Resource
      auth="Container"
      name="jdbc/helloDS"
      type="javax.sql.DataSource"
      password="jpsoft"
      driverClassName="oracle.jdbc.driver.OracleDriver"
      maxIdle="5"
      maxWait="-1"
      username="lxm"
      url="jdbc:oracle:thin:@localhost:1521:orcl"
      maxActive="10"/>
其他的东西都不要管,我是这样做的,大家可以试下...
原创粉丝点击