JDBC Type 2 Driver 3.0 Programmer's Reference (SQL/MX 3.x)
JDBC API Packages
The JDBC/MX API packages are shipped with the JDBC/MX driver software. For the API documentation, see the
JDBC/MX Driver for NonStop SQL/MX for H50 API Reference in the H-series library in the NonStop Technical
Library at Business Support Center (BSC).
The java.sql and javax.sql packages are included as part of Java 2, Standard Edition (J2SE) SDK 1.5 and,
therefore, are available with the core APIs delivered with the NonStop Server for Java 5 product.
Sample Programs Summary
The JDBC/MX driver includes sample Java programs that illustrate the features of the product. The programs are
described in the following table.
Sample Program Comments
sampleJdbcMx.java
Illustrates loading the JDBC/MX driver and obtaining a JDBC
connection using the DriverManager interface.
CreateDataSource.java and
TestDataSource.java
Illustrates making a connection by using the DataSource interface,
thereby avoiding embedding driver-specific codes in the Java programs.
CreateDataSource.java creates the SQLMXDataSource object and
registers the object with the Java Naming and Directory Interface
(JNDI).
MultiThreadTest.java
Demonstrates the nonblocking JDBC/MX driver feature. By default, this
program creates two threads. In nonblocking mode, these two threads










