The SimpleNetworkClientSample program is a client
program that interacts with the
Derby Network Server from
another JVM.
The program performs the following tasks:
- Obtains a client connection by using the DriverManager.
- Obtains a client connection by using a DataSource.
- Tests the database connections by running a sample query.
- Closes the connections and then exits the program.
To run the sample program, use the following files in the
%DERBY_HOME%\demo\nserverdemo\
directory:
- The source file: SimpleNetworkClientSample.java
- The compiled class file: SimpleNetworkClientSample.class