Hi, all. I would like to know exactly what are the approved/documented
ways to get a connection.
My reason for asking this is, I want to understand what all touch points
there are in JDBC that allow you to get access to the first
implementation class for a given driver. If I have it right, everything
hangs off of a Connection, so what are the ways in which you get a
Connection?
I know one way is to load the driver class and then use
DriverManager.getConnection().
Another way is, in a managed environment, use JNDI or some other
mechanism to load a registered DataSource and then use that to get a
connection.
Are there other ways? Can, for instance, a user directly create an
driver specific DataSource instance (rather than going through JNDI) and
then use that to create connections? Or is that not a supported mechanism?
Thanks,
David
begin:vcard
fn:David W Van Couvering
n:Van Couvering;David W
org:Sun Microsystems, Inc.;Database Technology Group
email;internet:[EMAIL PROTECTED]
title:Senior Staff Software Engineer
tel;work:510-550-6819
tel;cell:510-684-7281
x-mozilla-html:TRUE
version:2.1
end:vcard