• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How I unload driver

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We always load driver and take connection and close it, but we never unload the driver , why ?
:roll:
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Loading the driver allows the Driver to register itself with the DriverManager (this is done automatically, you should never need to do it explicitly). This is only done once, even if you load the Driver multiple times - it only loads itself when the Driver Class is loaded by the ClassLoader.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic