Forums Register Login

data source reference?

+Pie Number of slices to send: Send
is data source reference a Connection object?
+Pie Number of slices to send: Send
No. It stores connection information, and DataSource.getConnection() can be used to establish a connection with the data source that this DataSource object represents.
+Pie Number of slices to send: Send
so what's a data source object?

what's the difference between
DriverManager.getConnnection("jdbc:odbc:dsn",�un�,�pw�);
and
DataSource.getConnection();
+Pie Number of slices to send: Send
so what's a data source object?

what's the difference between
DriverManager.getConnnection("jdbc:odbc:dsn",�un�,�pw�);
and
DataSource.getConnection();
+Pie Number of slices to send: Send
DriverManager is used to register and load drivers and then establish connection and the DataSource interface for establishing connections. Just the Way a DriverManager returns a Connection object.

DataSource returns a Connection object when a method getConnection() is called. While the DriverManger loads driver classes(actually the drivers register with the DriverManager when they are loaded).
[ August 31, 2006: Message edited by: Saif Uddin ]
Have you no shame? Have you no decency? Have you no tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1129 times.
Similar Threads
Eclipse Import Project question
DAO with Stateful Session Beans
Spring 3.0 query
what is data source name and reference?
Writer Already obtained
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:45:37.