Type 4 Pure Java socket API drivers use native protocols
to talk directly to database servers over (an intranet) network.
DataDirect Connect for JDBC is available for Oracle,
DB2, Microsoft SQL Server, Sybase, and Informix.
They are licensed by TIBCO and other packages.
jTDS is the most performant and supported pure Java (type 4)
JDBC 3.0 driver for Microsoft SQL Server and Sybase. It is open source based on FreeTDS.
Once the drivers are installed and configured,
applications can connect to databases with a
connection URL through the JDBC Driver Manager:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:oracle://server_name:1521;User=test;Password=secret");
Alternately, connection can be through a JNDI (Java Naming Directory Interface) data source.
With their base.jar, util.jar, and driver.jar libraries in CLASSPATH
driver class com.ddtek.jdbc.oracle.OracleDriver
Data source com.ddtek.jdbcx.oracle.OracleDataSource
With the GNU mySQL database and Mark Matthews' Connector/J (formerly Open Source MM.MySQL) driver:
Class.forName("org.gjt.mm.mysql.Driver");
con = DriverManager.getConnection
("jdbc:mysql://localhost/ImagesDB?user=user1=passwd");
SPI (Service Provider Interfaces) such as OMG Java access protocol for object databases...