posted 15 years ago
Hi,
i develop a swing application,
i create a connection like this
public static Connection getConnection()throws Exception{
Connection conn=null;
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
conn=DriverManager.getConnection(url,userName,password);
}
catch(SQLException sqlex){
sqlex.printStackTrace();
}
}
but this connection is hold in db,not closed
this time i got an error like maximum number of connections exceeded
pls help me,
Thanks,
johny