How the server-side connection example differs

The server-side connection example is almost identical to the client-side connection example, with the following exceptions:

  1. The JDBC driver does not need to be pre-loaded.

  2. It connects to the default running database using the current connection. The URL in the getConnection call has been changed as follows:

    Connection con = DriverManager.getConnection(
              "jdbc:default:connection" );
  3. The System.exit() statements have been removed.