<!
Context context = new InitialContext()
DataSource ds = (DataSource)context
Connection conn = ds
PreparedStatement ps = conn
ResultSet rs = ps
while(rs
{
out
out
}
conn
在應用的
context
中如下配置
<Context> …… ……<Resource name=
maxActive=
maxIdle=
maxWait=
username=
password=
driverClassName=
url=
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25694.html