Previous Topic Next topic Print topic


Demonstration Application

Restriction: This topic applies to Windows environments only.

Enterprise Developer provides one JDBC sample application – Getting Started with JDBC.

You can run the sample from the Visual COBOL Samples Browser. To start the Visual COBOL Samples Browser, click Start > All Programs > Micro Focus Enterprise Developer > Samples > Visual COBOL Samples.

Note: On Windows 8, Windows 10, and Windows Server 2012, you use the Start screen to invoke programs. To start the Samples Browser on Windows 8, Windows 10, or Windows Server 2012, go to the Start screen and click the Visual COBOL Samples tile.

The JDBC sample is listed on the Show managed only list in the Visual COBOL Samples Browser.

The source files are located in %PUBLIC%\Documents\Micro Focus\Enterprise Developer\SamplesEclipse\jvm_cobol by default.

The sample application comes with a Readme file to explain how to use the application.

Before you can use the demonstration application, you need to set up a data source to use by the demonstration.

This demonstration application produces a console log displaying its progress and, possibly, query results. It terminates on receipt of an error after displaying an error message.

OESQL - Getting Started with JDBC
Introduces using OpenESQL with JDBC, and shows how to connect to a database using either Connection Strings or Data Sources. To use Connection Strings you will need to add only your JDBC driver to the build or classpath. To use data sources you will need a JNDI implementation, such as Simple-JNDI, along with configuration files to define the data sources. See the JDBC topic within your product documentation for further information.
Previous Topic Next topic Print topic