Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DriverSource interface i am stuck

 
Muhammad Qureshi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AOA
I am having problem in implementing datasource interface, I know all theoritical details about datasource interface and connectionpooleddatasource as well but I am having problem in implementing it I have, i am stuck from where the actuall connection is returning. I have defined a class RibsDataSource implementing DataSource interface with getters and setters for properties:
Connection conn;
String serverName serverName;
String databaseName dbName;
And other class PNDatabaseConnection instantiating PNDataSource and calling its setters, and getting connection by calling getConnection method, but how does it get the Connection I mean how does RibsDataSource class creates Connenction object does it do so by using DriverManager.getConnection()?
Hopes for a quick and detailed answer
regards
Qureshi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic