Wrong way to close the connection object:
Connection con = ds.getConnection();
....
....
....
con = null;
Right way:
Connection con = ds.getConnection();
.....
.....
.....
con.close();
con = null;
No comments:
Post a Comment