Microsoft Application Center 2000 Resource Kit 2001

We installed three sample applications on our stager in order to test different deployment scenarios by using applications of varying complexity, as well as determine what impact staging had on clusters that were actively serving content. The three sample applications are:

NOTE


This application also requires a back-end SQL Server database.

Installing the Applications on the Stager

Use the following steps to install the three sample applications on the staging cluster.

Web Guide

  1. On the controller's C drive, create a directory named GUIDE, and then put the collection of HTML pages and graphics in this folder.

    NOTE


    We created a separate subdirectory named Images to hold the graphics.

    First we'll create the Web application in IIS, and then the Application Center application.

  2. Expand the IIS node, and then expand the cluster controller node.
  3. Right-click Default Web Site, point to New, and then click Virtual Directory.
  4. On the Virtual Directory Creation Wizard Welcome page, click Next.
  5. On the Virtual Directory Alias page, in the Alias box, enter WebGuide and then click Next.
  6. On the Web Site Content Directory page, click Browse, locate the C:\GUIDE directory, identify it as the content directory, and then click Next.
  7. Accept the defaults, and then click Next.
  8. On the last wizard page, click Finish.

Create an Application Center Application

Finally, we'll create an Application Center application.

  1. In the Application Center snap-in, click Applications to display the Applications view.
  2. Click New, and then in the Name box, enter Web Guide as the name of the new application.
  3. Click Web Guide, right-click the arrow to the right of Resource Type, and then click Web Sites and Virtual Directories.
  4. In the Web Sites and Virtual Directories list, click Default Web Site, click Add, and then click Close.
  5. Right-click the arrow to the right of Resource Type; click File System Paths; in the File System Paths list, click C:\GUIDE; click Add; and then click Close.

You now have the application fully installed on the stager and ready for deployment.

Pre-Flight Check

Repeat the instructions you followed in "Validate the Configuration: Replication" earlier in this chapter to install the PreFlight Check sample application on the stager. The quickest way to do this installation is to run the following batch files in the C:\ACPF\Files directory:

FMStocks 2000

You can find the compressed file containing the FMStocks 2000 application on the CD or you can obtain the latest version from the Microsoft Web site at http://msdn.microsoft.com/default.asp.

Copy FMStocks2000.exe to a temporary directory on the stager's drive and run this executable. This setup program will expand the executable and source code files into the \Program Files\FMStocks 2000 directory. This directory will contain the following four subdirectories: Components, Documentation, Database, and Website.

There are four batch files in the FMStocks 2000 root directory (C:\Program Files\FMStocks 2000) that you can use to install the application. These batch files are:

To install FMStocks 2000 on the stager, we only ran the Setup-web and Setup-components programs. The application's database was then installed on a separate server outside the cluster environment. We did this by:

There are three steps required to complete the installation of FMStocks on the stager:

  1. Configure a component that identifies the application's data source.
  2. Install an ISAPI filter.
  3. Create an Application Center application that identifies the FMStocks resources.

Configure the Data Source

You need to configure a component that identifies the database server and database that FMStocks will use in your environment.

  1. On the stager, open the Application Center snap-in, and then expand the Component Services node down to and including FMStocks Core.
  2. Open the Components folder, and click FMStocks_DB.DBHelper.
  3. Right-click; on the pop-up menu, click Properties; and then click the Activation tab.
  4. Select the Enable object construction check box, and then in the Constructor string box, define the new data source name, which should correspond to the database server name. (See Figure 8.13.) Click OK to save this configuration.

    Figure 8.13 Enabling the FMStocks data connection

Install the ISAPI filter

The filter's DLL file, Fms2ksec.dll, is located in the directory \Program Files\FMStocks 2000\Components\ISAPI Filter. This filter has to be added to the properties for Default Web Site.

  1. Use the Application Center snap-in to open the Default Web Site Properties dialog box.
  2. Click the ISAPI Filters tab, and then click Add.
  3. Use the Filters Properties browser to name and identify the filter.

    After you've done this, the Default Web Site Properties dialog box will be similar to the one shown in Figure 8.14.

    Figure 8.14 Using the Default Web Site Properties dialog box to add a global ISAPI filter

Create the Application Center Application

  1. In the Application Center snap-in, click Applications to display the Applications view.
  2. Click New, and then in the Name box, enter FMStocks 2000.
  3. With FMStocks 2000 highlighted, use the Resource Type list to add COM+ Components and Web Sites and Virtual Directories as resources for this application.
  4. Add the following COM+ applications to FMStocks 2000:
    • FMStocks 2000 Core
    • FMStocks 2000 Events
    • FMStocks 2000 Office Extensions
    • FMStocks 2000 Store Order Processing
    • FMStocks 2000 Store Shopping Cart
  5. In the Resource Type list, click Web Sites and Virtual Directories, and then add the FMStocks Web site (Web Site/Root) as a resource.

Test the FMStocks Application

After you've finished installing FMStocks, you should test the application to see if it's installed and configured correctly. You can do a simple application to test database connectivity by running the Test FMStocks installation.vbs script, which is located in the FMStocks 2000 root directory.

You can test the application more extensively by using the Web browser to access the FMStocks home page on the server, log on, and trade stocks.

NOTE


The FMStocks sample application also contains a script that you can load into WAS and run to apply load on a server (FMStocks 2000 Template.mdb).

Категории