aspose file tools*
The moose likes JDBC and the fly likes DriverSource interface i am stuck Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DriverSource interface i am stuck" Watch "DriverSource interface i am stuck" New topic
Author

DriverSource interface i am stuck

Muhammad Qureshi
Greenhorn

Joined: Mar 05, 2002
Posts: 9
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
 
Consider Paul's rocket mass heater.
 
subject: DriverSource interface i am stuck
 
Similar Threads
Object adapter design pattern
How can an interface reference invoke a method
Some Query related to Connection Pooling
Sockets
DataSouce without JNDI