Running the CONNX JDBC Sample Applet

A sample Applet is provided to test CONNX JDBC installation. For this example, CONNXSamples was used as a Data Source Name. To test other data sources, it is necessary to use the DSNRegistry tool to register the data sources. There are two ways to test the applet as follows:

 

Option 1 (Running the CONNX JDBC Sample Applet from an AppletViewer):
This option requires an AppletViewer application. AppletViewer is a Java SDK application that allows applets to be tested without a Web browser. It may be necessary to install a Java SDK to obtain the AppletViewer application. A Java SDK has more utilities than the JRE (Java Runtime Environment) that is installed with CONNX JDBC. Java SDKs are available through download for systems running JDBC. See JDBC Resources, for a list of Web sites that offer JDK download options.

If you want to test the CONNX JDBC applet from a Windows machine, follow this procedure:

  • Click Start, and then point to All Programs. Point to CONNX Driver and then click CONNX JDBC Sample Applet.

If you want to test the CONNX JDBC applet from a non-Windows machine, follow this procedure:

  1. Verify that the connxjdbcftp.jar file has been copied and unpacked to the non-Windows target. For information on how to transfer the connxjdbcftp.jar file, refer to.Moving a Client to a non-Windows Platform by Transferring the .jar File.

  2. Go to the C:\<installation location>\CONNXJDBC\JAVA\SAMPLES directory. For example, for UNIX, type cd java/samples on the command line.

  3. Press <Enter>, and then type the following command:

appletviewer connxSampleApplet.html
 

to run the sample applet. The Applet Frame window appears. Follow the instructions described in Option 1 above.

 

Option 2 (Testing from a Web Server):

Follow this procedure to test the sample applet from a Web server.

  1. Copy the ConnxSampleApplet.html, ConnxSampleApplet.jar, and ConnxJdbc.jar files to a directory that can be accessed by your Web server, for example, C:\Inetpub\wwwroot\jdbctest. If the Web server root file is C:\Inetpub\wwwroot, client can access the html page by going to http://<website ip address> or <website name>/jdbctest/ConnxSampleApplet.html.

  2. Test the installation by using a different client machine to access the ConnxSampleApplet.html file. The client machine does not have to have CONNX JDBC. The ConnxJdbc.jar file is downloaded when the .html file is accessed. If it is a non-Windows Web server, for example, Linux, the CONNX JDBC Router must be installed on the Web server machine.

  3. For more information about the CONNX JDBC Router, see the CONNX JDBC Server section in the CONNX User Reference Guide, available online and on the CONNX CD-ROM.