• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

throwing an Exception after first exceution ..

 
shiva mistry
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't close the connection, then.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic