WineDemo

WineDemo is the original SilverStream demonstration application, a Web-based e-commerce application that implements shopping cart functionality to allow users to purchase wines from Silver Creek Corporation, a fictitious wine distributor. The application provides Internet and Intranet interfaces.

This sample application resides in the WineDemo37 database.

This page covers the following topics:

 
Top of page

Two interfaces

The WineDemo application provides two interfaces: an Internet interface and an Intranet interface. Each of these interfaces serves a different user base and imposes different security requirements.

 
Top of section

Internet

The Internet interface is designed for customers--primarily restaurants--to search the wine catalog, place orders, subscribe to the Silver Creek newsletter, and send feedback to Silver Creek about their products.

The Internet interface starts up by default on pgInternet.html when you run the WineDemo application. You can also access the Intranet from this page.

 
Top of section

Intranet

The Intranet interface is available only to Silver Creek employees. Within the Intranet interface, authorized employees can view and update the wine catalog, approve new entries, maintain customer information, process orders, create customized newsletters, correspond with other employees, and create charts that illustrate buying trends.

There are two versions of the Intranet interface, one implemented in the form frmIntranet and the other in the form frmIntranetNoGraph. In frmIntranet you will find a charting bean from KL Group that demonstrates how to produce high-quality graphs and charts in a SilverStream application. There is no charting bean in frmIntranetNoGraph, but it loads faster.

 
Top of page

Updates to the application

The WineDemo application has been updated to demonstrate how you can use an EJB session bean to implement the shopping cart. The original implementation--which uses a session object--has also been retained. You can toggle between the two implementations by changing preferences in the Intranet part of the application, as described in the following procedure.

To change shopping cart implementations:

  1. Install and run the WineDemo database.

    The home page opens in your browser:

  2. Click SilverCreek Intranet Application at the bottom of the home page. (You may need to scroll down or expand the browser window to bring this link into view.)

    The File Download dialog appears.

  3. Select Open this file from its current location, then click OK.

    The Enter Password dialog appears.

  4. If you have not set up your own users, enter default values for user name and password, then click OK.

    The Silver Creek Intranet interface opens as a separate process in SilverJRunner:

  5. In the Intranet interface window, select Edit>Preferences.

    The Preferences window opens.

  6. Click the EJB tab. (You may need to scroll horizontally to bring this tab into view.)

  7. Select or deselect the check box labeled Use EJB Session Bean for Internet Shopping Cart as desired, then click OK.

 
Top of page

Technologies used in WineDemo

WineDemo demonstrates a real-world implementation of the following SilverStream technologies:

 
Top of page

Secured access

Some pages and forms in the WineDemo Intranet require login so that only Silver Creek employees can gain access. As you explore the Intranet, you will be asked to provide a valid user name and password. You can log in as any defined user. If you have not set up your own users, you can log in using the administrator account that was defined when the SilverStream server was installed.

    For more information, see the Installation Guide.

 
Top of page

Getting started

To run WineDemo:

  1. After installing the WineDemo database, start the Main Designer.

  2. Select the WineDemo database in the left pane of the Main Designer.

  3. Select the Run Database icon:

    The home page opens in your browser:

    To bring the Intranet links at the bottom of the page into view, you may need to scroll down or expand the browser window.

  4. To interact with the WineDemo Internet interface, click any of these icons:

  5. To interact with the WineDemo Intranet interface, click any of the links at the bottom of the page:


Copyright © 2001, SilverStream Software, Inc. All rights reserved.