|
出現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();
}
要改什麼?? |
|