DriverManager is a class (implementation) provided by standard Java and you
could dirctly use any JDBC Driver. DataSource is an Interface (has no
implementation) in package javax.sql (have a look to:
http://docs.oracle.com/javase/1.4.2/docs/api/javax/sql/DataSource.html ) .
In the J2EE environment the Webserver (Tomcat for example) or Appserver will
provide an implementation for you and the documentation of it will tell you
how to configer it (in the web.xml config file for example). If you are
writing standalone applications, you could continue to use DriverManager, or
use a ConnectionPool (DBCP or c3p0 for instance), depemding on your needs.
D*B
"Mr. K.V.B.L." <
kenvery...@gmail.com> schrieb im Newsbeitrag
news:14860285.2342.1335473283773.JavaMail.geo-discussion-forums@ynjj38...