我对连接池的概念还是很模糊,不明白,请高手为我讲解!

解决方案 »

  1.   

    <Resource
        name="jdbc/newsina"
        type="javax.sql.DataSource"
    validationQuery="select 1"
    testWhileIdle="true" 
    timeBetweenEvictionRunsMillis="3600000"
    minEvictableIdleTimeMillis="18000000"   
    testOnBorrow = "true"
        password="AyM}YjM"
        driverClassName="com.mysql.jdbc.Driver"
        maxIdle="2"
        maxWait="5000"
        username="sina"
        url="jdbc:mysql://211.152.32.40:3306/sina?autoReconnect=true"
        maxActive="4"/>
      

  2.   

    http://bbs.365master.com/thread-153485-1-1.html数据库连接池涉及的问题http://baike.baidu.com/view/84055.htm?fr=ala0百度百科数据库连接池http://leonandjava.javaeye.com/blog/317867各种连接池的配置