如何处理数据库连接?

时间:2012-04-12 18:23:09

标签: java sql-server-2005 jdbc hornetq

使用SqlServer Database 2005并使用连接池并在Tomcat Context.xml文件中编写代码

<Resource
        name="jdbc/tm4u"
        auth="Container"
        type="javax.sql.DataSource"
        driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
        url="jdbc:sqlserver://192.168.1.230:1433;databaseName=AMS2;User=XX;Password=XXXXX;selectMethod=cursor"
    username="sa"
    password="t4u@2011"
    maxActive="200"
    maxIdle="10"
    maxWait="10000"
        /> 
The above configuration file am open 200 connection .. but in database it will opened 1500+ connections ... please help me how to handle.

0 个答案:

没有答案