Hi
I'm using postgresql-8.3-604.jdbc3.jar driver
I have a very simple java program to inspect what drivers are initially loaded:
import java.sql.DriverManager;
public class ListDrivers {
java.util.Enumeration myDrivers = DriverManager.getDrivers();
while (myDrivers.hasMoreElements()){
System.out.println(myDrivers.nextElement());
}
}
}
When I run it using:
java -cp .;postgresql-8.3-604.jdbc3.jar ListDrivers
It returns
sun.jdbc.odbc.JdbcOdbcDriver@3cb89838
org.postgresql.Driver@b815859
Note that I have not loaded the driver using the typical classForName neither the java -Djdbc option
Why postgres driver is loaded only by including the jar file in the classpath?
Thanks
Jesus