Administration Guide
Overview Guide
Installation Guide
Previous Next Contents



Configuring the Sample Applications
When the Netscape Application Server is installed and running, use the sample applications to see that the server is working properly. You can also use the sample applications to learn about the available features.

Sample Application
Description
Languages
Hello
Simple application that displays a "Hello World" statement when the AppLogic object is invoked.
C++
Sample
Three-in-one application that demonstrates simple AppLogic execution.
Java and C++
Office Catalog
E-commerce application that manages sessions and database access through online product purchasing.
Java
CalHoops
Basketball-statistic-generating application that caches database connections and result sets.
Java and C++
States
Population-statistic-generating application that caches database connections and result sets.
Java and C++
Online Bank
Online customer banking application that manages security and sessions.
Java and C++

About Configuring Sample Applications
When you configure the sample applications, you

The applications can access the data sources through either an ODBC database driver or through a native database driver.

Supplied configuration and data-loading files for both the UNIX and Windows NT systems simplify populating the database with the sample data.

About Configuring Sample Applications for Unix
Shell scripts handle the configuration tasks on a UNIX operating system. Separate data-loading scripts are supplied for each of the following databases.

Before you run the appropriate shell script, edit the script's login and password to match those of your database administrator account.

Separate shell scripts are also supplied for each sample application that performs database access. These scripts are in the DB directory of the appropriate application.

Connecting to the database is done using the database vendor's client utilities or by invoking the shell scripts from the shell prompt. The shell scripts invoke the programs necessary to connect to the database, configure the sample application account, and invoke the SQL files used to populate the database with the data.

After you run the appropriate script, you need to configure the new datasource so that the application can access the data. The sample applications can access the database through an ODBC driver or through a native database driver.

For configuring native database drivers, you can use the client utilities provided with the database, or you can edit the appropriate datasource name file. The databases vendors provide the following client utilities for accessing their databases:

For more information about these vendor utilities, see the documentation provided with them.

Configuring the datasource for an ODBC driver requires that you edit the odbc.ini file to reflect the new datasource name and server ID. Use the entries already in the file as a guide to add the new datasource.

For information about configuring the sample applications for UNIX, see "Configuring the Sample Applications for UNIX."

About Configuring Sample Applications for Windows NT
For installations of Netscape Application Server on the Windows NT operating system, you invoke a batch file to create the sample application account and to set up the database for the sample application data.

After running the appropriate batch file for your specific database, run the appropriate SQL file to load the sample application data. There are separate files for each database into which you are going to load the data.The provided batch and SQL files can be used for the following databases:

There are also separate configuration files for each sample application that performs database access. These files are located in the DB directory of the appropriate application.

Before you run the batch files that setup the database, you should edit the login and password of the file to match those of your database administrator account. For Sybase, Microsoft SQL Server and Informix databases, you must also create a database called ksample and grant create table and select privileges to public for this database.

After you run the appropriate batch and SQL files, you need to configure the new datasource so that the application can access the data. The sample applications can access the database through an ODBC driver or through a native database driver.

For configuring native database drivers, you can use the client utilities provided with the database, or you can edit the appropriate datasource name file. The databases vendors provide the following client utilities for accessing their databases:

You can use the ODBC Data Source Manager to configure the new datasources through an ODBC driver.

For more information about the vendor utilities or the ODBC manager, see the documentation provided with those utilities.

For information about configuring the sample applications for Windows NT, see "Configuring the Sample Applications for Windows NT."

 

© Copyright 1998 Netscape Communications Corporation