Connecting a client to the Network Server with the SimpleNetworkClientSample program

The SimpleNetworkClientSample program is a client program that interacts with the Derby Network Server from another JVM.

The program performs the following tasks:
  1. Obtains a client connection by using the DriverManager.
  2. Obtains a client connection by using a DataSource.
  3. Tests the database connections by running a sample query.
  4. Closes the connections and then exits the program.
To run the sample program, use the following files in the %DERBY_HOME%\demo\nserverdemo\ directory:
Related concepts
Overview of the SimpleNetworkServerSample program
Related tasks
Running the SimpleNetworkServerSample program
Running the SimpleNetworkClientSample program