This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes throwing an Exception after first exceution .. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "throwing an Exception after first exceution .." Watch "throwing an Exception after first exceution .." New topic
Author

throwing an Exception after first exceution ..

shiva mistry
Greenhorn

Joined: Feb 05, 2013
Posts: 10
When I try to Enter sid second time from command prompt it throws an Exception like Connection is closed but if i comment out the con.close() then it allows to perform another query ,I do not know what to do ?can any one help please?



Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Don't close the connection, then.
 
wood burning stoves
 
subject: throwing an Exception after first exceution ..