Connecting to JavaStop Using JDBC

The application JdbcConnection demonstrates how to connect to JSTP using a JDBC thin driver. It should be noted that if you intend to use the JDBC OCI driver, the code is the same except for the database URL syntax.

The application has the following features:

  • After the application is launched, it shows the connection status and any errors.

  • When the user presses the Disconnect button, the application closes the connection and exits.

The JdbcConnection.jar file contains the following files:

  • JdbcConnection.java—This is the source file for the application.

  • JdbcConnectionGui.java—This is the source file for the user interface used by the application.

  • JdbcConnection.jws—This is the JDeveloper workspace file.

  • JdbcConnection.jpr— ...

Get e-Commerce Applications Using Oracle8i and Java from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.