Sample Applications

Silverstream comes with a set of sample applications that provide real-world examples you can use to explore SilverStream product features and to learn techniques for fine-tuning your own applications. This section covers the following topics:

List of sample applications    Top of page

Here are links to the sample applications that are shipped with the SilverStream product as databases that you can install and run:

Application Database
EJB examples Examples3_EJB
Accessor3
HTML client examples Examples3_HTML
Java client examples Examples3_Java
Data publishing utility DataXPress3
Electronic commerce SilverBooks3
WineDemo3
Web site construction WebSite3

Each link takes you to a detailed description of the sample application. Where appropriate, you will also find implementation instructions, in-depth explanations of the techniques demonstrated by the sample, and references to relevant conceptual and procedural information.

Installing and running sample applications    Top of page

Sample applications are installed on your hard drive and accessible as Sybase Adaptive Server Anywhere databases when you install the SilverStream product with specific options. After installation, you must add the sample databases to your server before you can run the applications. These procedures are described below.

To install and run sample applications:

  1. Install the SilverStream product with these options:

  2. If you chose Typical install, add sample applications of interest to your server by selecting Add Database from the Main Designer or by using the SilverCmd AddDatabase command line tool.
  3. Run the sample application according to these guidelines:

    Sample application How to invoke
    Accessor3
    DataXPress3
    Examples3_EJB
    Examples3_HTML
    SilverBooks3
    WineDemo3
    Run in a browser.
    Examples3_Java Run as a standalone process in SilverJRunner.
    WebSite3 See implementation instructions.

    For more information about installation options, see the SilverStream Installation Guide.

To run sample applications in a browser:

The following sample application databases are designed to run in a browser:

After installing these sample databases and adding them to your server, follow these steps to run the applications:
  1. Start up the Main Designer.
  2. Click to select the sample database of interest in the left pane of the Main Designer.
  3. Select the Run Database icon:

    The home page of the sample application opens in your browser.

To run sample applications as standalone processes in SilverJRunner:

The following sample database is designed to run as standalone applications:

After installing this sample database and adding it to your server, follow these steps to run the applications:
  1. Start up the Main Designer.
  2. Expand the sample database of interest in the left pane of the Main Designer and click to select Forms.
  3. In the right pane of the Main Designer, click to select the form that launches the application, as shown in the following table:

    For this database: Select this form:
    Examples3_Java frmMenu

  4. Select the Run icon:

    The home page of the sample application opens in SilverJRunner, providing links to interactive examples, usage instructions, and information about techniques.