Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing all connections to a database

Status
Not open for further replies.

dendog

Programmer
Jun 28, 2001
53
US
how do u close all connections to a database file in java. Not just the connection opened in that program but all connections to it
Thanx

DENNIS
 
I usually do it in the destroy()

public void destroy()
{
try
{
nameOfConnection.close();
super.destroy();
}
catch(SQLException e)
{
log(e.getMessage());
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top