This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Loading of Driver is required in JDBC  RSS feed

 
Abhishek Rath
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can you please clarify the following points

1.Why we need to register the drivers in JDBC?
2.What is the alternative of class.forName
3.What is the use of DriVerManager class?

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the JDBC tutorial : Establishing a connection.
 
Abhishek Rath
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks .However without using datasource is there a alternative way for cass.forname()?
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever way you 'touch' the Driver class is good as long as it makes the classloader initializes it.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!