查看: 1282|回复: 1
|
MySQL Connection Pool + Tomcat
[复制链接]
|
|
出現Cannot get a connection, pool exhausted
一台打資料,為什麼會满呢??
Context initContext = new InitialContext();
Context envContext = (Context)initContext.lookup("java:/comp/env");
DataSource ds = (DataSource)envContext.lookup("jdbc/lsmotor");
Connection conn = ds.getConnection();
try
{}
catch(SQLException e)
{}
finally
{
conn.close();
}
要改什麼?? |
|
|
|
|
|
|
|
发表于 11-6-2007 10:47 PM
|
显示全部楼层
|
|
|
|
|
|
| |
本周最热论坛帖子
|