【www.gdgbn.com--开发手册】

首先按正常步骤配置好proxool连接池,在web.xml中配置自动监控,做简单测试保证该连接池能够正常工作。proxool.xml配置如下:

1.proxool.xml




 
    MyPool
    jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test;SelectMethod=cursor
    com.microsoft.jdbc.sqlserver.SQLServerDriver
   
     
      word" value="testpwd"/>
   

    80
    20
    180000
    5
    select CURRENT_DATE
 


 

2.applicationContext.xml配置proxool连接池,有两种方式,一种是利用上面配置好的proxool.xml文件,另一种方式是直接在applicationContext.xml中配置,首先看方式一:

     
            
              org.logicalcobwebs.proxool.ProxoolDriver  
            
         

本文来源:http://www.gdgbn.com/shipin/13501/