A
Deploying the Sample Application With IntelliStream
This appendix tells you how deploy the Progress sample application, SportsPro, with WebClient with IntelliStream. 
NOTE:	There is no difference between SportsPro in the current version of Progress and Sports2000 in previous versions. 
When you run the sample application with IntelliStream technology, only a portion of the application downloads initially, while the rest downloads only as needed. 
These instructions use the following symbols:
	%DLC% refers to the Progress installation directory on a particular machine. For example, the instructions might mention %DLC% on the end user-machine.
	%DOCS% refers to the Documentation installation directory on a particular machine. This might or might not be the same as %DLC%.
	%ASWORKDIR% refers to the work directory of a Progress AppServer.
	%APPROOTDIR% refers to the root directory of a WebClient application.
	%OUTDIR% refers to the directory in which the WebClient application assembler places the files it generates.
	%MYWEBSERVER% represents your Web servers domain name or IP address.
NOTE:	A copy of the WebClient files that support the sample application reside in the following directory:
%DOCS%\src\samples\webclient\dynappdel.
A copy of these instructions resides in the following file:
%DOCS%\src\samples\webclient\dynappdel\instructions.txt.
These instructions cover:
1.	Preparing the Web server
2.	Setting up the application on the AppServer machine 
3.	Setting up the cabinet file containing the application configuration file on the Web server machine 
4.	Installing and running the application on the client machine 
A.1		Preparing the Web Server
Preparing the Web server involves:
	Setting up the Java Servlet Engine and the AppServer Internet Adapter
	Setting up MIME types for the application configuration file
NOTE:	The application configuration file always has a file extension of .prowcapp and always resides in a Microsoft Cabinet file with a file extension of .prowcapc. This is true whether the application is signed or unsigned.
A.1.1	Setting Up the Java Servlet Engine and the AppServer Internet Adapter
For instructions on setting up the Java Servlet Engine (JSE) and the AppServer Internet Adapter (AIA) on the Web server, see the chapter on configuration and managing the AppServer Internet Adapter in OpenEdge Application Server: Administration and the Progress Knowledge Center entries on setting up the JSE to work with the AIA. To access these, search the Knowledge Center on JSE and AIA.
A.1.2	Setting Up MIME Types for the Application
Configuration File
On the Web server, set up MIME types for the application configuration file. The technique for doing so depends on your particular Web server. For information on setting up MIME types for a particular Web server, see the Configuring MIME Types for Your Web Server section of Chapter 7, Deploying an Application, in OpenEdge Deployment: WebClient Applications. Also, see the documentation for your Web server.
A.1.3	Setting Up the WebClient Install and Bootstrap Mechanism 
Follow these steps to set up the WebClient install and bootstrap mechanism:
1 	Recursively copy the %DLC%\webinstall\webclient\web_image directory to the web_image subdirectory of your Web servers document root directory. 
2 	Edit the bootstrap.htm file (which was copied in Step 2) so it references your WebClient install image and your application configuration file as follows:
In the bootstrap.htm file, replace the document.location.href and window.location URLs to match the location of your configuration and webclient.htm files, respectively.
For example:
document.location.href = "http://pctest/web_image/sportspro.prowcapc";
window.location = "http://pctest/web_image/webclient.htm";
3 	Edit the webclient.htm file (which was copied in Step 2) as follows:
a)	Uncomment the lines that invoke the WebClient initializer. (Keep commented the lines that invoke the One-Click application install directly.)
b)	Change <URL to your .prowcapc file> to http://%MYWEBSERVER%/web_image/sportspro.prowcapc. 
For example:
ether.SetProperty(ProwcappURL, http://pctest/web_image/sportpro.prowcapc);

A.2	Setting Up the Application on the AppServer Machine 
Follow these steps to set up the application on the AppServer machine: 
NOTE:	This example assumes that the AppServer machine is the same as the development machine on which you prepare the front-end and back-end application code. For this reason, this machine must be a Windows machine.
1 	Verify that a Progress development product has been installed on the AppServer machine and that the person doing the installation, when presented with the Setup Type window, chose the complete installation, as opposed to the typical installation or the
custom installation.
2 	Verify that a Progress AppServer has been installed and configured on the AppServer machine. 
3 	Create the WebClient application root directory, the symbol for which is %APPROOTDIR%. The application root directory can reside anywhere, but note its path.
4 	Recursively copy the source-code files of the Sports2000 application from the %DOCS%\src\sports2000\gui directory to %ASWORKDIR%.
NOTE:	The gui directory contains both back-end and front-end application files. %ASWORKDIR% is where the entire application will be compiled, though only the back-end r-code (.r) files will be run from this directory.
5 	Create a copy of the Sports2000 database on the AppServer machine. The copy can reside anywhere, but be sure to note its path.
6 	Start a Progress session. Within the Progress session:
a)	Connect to the Sports2000 database, entering its path, which you noted in Step 5.
b)	Use the PROPATH Editor to add the AppServer work directory to the PROPATH. 
c)	In the Application Compiler, go to Options Compiler, change Minimize R-code size to YES, change Generate MD-5 to YES, and click OK. In the main window, click Modify. In the File Specification window, enter the AppServers working directory, click OK, and compile the application. 
7 	Recursively copy the following directories as specified below, creating the destination subdirectory as necessary:
Recursively Copy This Directory	To This Location
%ASWORKDIR%\gui	%APPROOTDIR%\appl 
%DLC%\gui\adm2 	%APPROOTDIR%\gui\adm2
%DLC%\jms 	%APPROOTDIR%\jms
%DOCS%\src\sports2000\images	%APPROOTDIR%\appl\images

8 	Copy the following files as specified below, creating the destination subdirectory as necessary:
Copy This File	To This Location
%DOCS%\src\samples\webclient\dynappdel\sportspro.ini	%APPROOTDIR%
%DOCS%\src\samples\webclient\dynappdel\appsrvtt.d	%APPROOTDIR%
%DOCS%\src\samples\webclient\dynappdel\sportspro.wcp 	%APPROOTDIR%
%DLC%\gui\adecomm.pl 	%APPROOTDIR%\gui
%DLC%\gui\adeicon.pl 	%APPROOTDIR%\gui
%DLC%\gui\adexml.pl 	%APPROOTDIR%\gui
%DLC%\gui\adeicon\progress.ico 	%APPROOTDIR%
%DLC%\bin\system\csspin32.ocx 	%APPROOTDIR%

9 	Use a text editor to modify the appsrvtt.d file, which you copied in Step 8, as follows:
a)	In appsrvtt.d, search for the following string:
http://yourservername/aia/Aia?AppService=sports2000partition 
b)	In the string, change yourservername to the domain name of the Web server running the AIA. For example, if the domain name of the Web server running the AIA is http://testhost, modify the string to appear as follows:
http://testhost/aia/Aia?AppService=sports2000partition
c)	Save appsrvtt.d.
10 					Use the WebClient Application Assembler as follows:
a)	From the main menu, select File Open, and open %APPROOTDIR%\sportspro.wcp. 
b)	On the General tab, change the path of the application root directory to its actual path (%APPROOTDIR%). The default value is d:\demo91c\sportspro.
c)	On the same tab, click on the Locator button. The Configuration File Locator Definition window appears. In this window, change the URL to the host name of the server hosting the configuration file, which defaults to http://yourhostname.
d)	In the Codebase Locator Definition window
(main menu Deployment Locators Codebase), change the URL to the
host name of the server hosting the codebase, which defaults to http://yourhostname.
e)	On the Options tab, check the System Tasks toggle box and click the System Tasks Definition button. The System Tasks Definition window appears. 
On the Shortcut tab, check the Application Shortcut toggle box and click
the ... button next to the Icon field. The Open window appears.
Manipulate the Open window to select the progress.ico file, which you copied to %APPROOTDIR% in Step 7.
On the Files tab, select the file d:\demo91c\sportspro\csspin32.ocx and click the Remove button. Then, add the file %APPROOTDIR\csspin32.ocx. Finally, confirm that the Application Specific toggle box is checked.
f)	Save sportspro.wcp.
g)	In the Generate window (main menu Deployment Generate), then choose Regenerate Latest Version. In the Output Directory field, enter the name of the directory where you want the generated files to be placed  that is, the value of %OUTDIR%. Finally, click OK.
The Application Assembler creates the application configuration file and the cabinet files and places them into the output directory you specified.

11 	Use the proserve command or the Progress Explorer to start a database server for the Sports2000 database running on the AppServer machine. For example, if the Sportspro2000 database resides at %APPROOTDIR%\databases, use a command similar to the following:
%DLC%\bin\proserve %APPROOTDIR%\databases\sports20000.db 

12 	Use the Progress Explorer to configure the default asbroker1 AppServer instance as follows:
a)	In the General Options for Broker tab: 
Change the broker working directory to the AppServer work directory (%ASWORKDIR%).
In the Appservice Name list, add the service name sports2000partition.
b)	In the General Options for Server tab:
Add the database connection parameter to Server Startup Parameters. For example if the Sports2000 database resides at %ASWORKDIR%\databases, enter the following string:
-db %ASWORKDIR%\databases\sports2000 
13 	Use the Progress Explorer or the asbman command to start the asbroker1 AppServer instance. For example (using the asbman command):
%DLC%\bin\asbman -name asbroker1 -start

A.3	Setting Up the Application to Launch from the Web Server
Follow these steps to set up the application to launch from your Web server machine:
1 	Copy sportspro.prowcapc (the cabinet file containing the configuration file to be downloaded) and the cabinet (.cab) files (containing the application files to be downloaded) from %OUTDIR% on the AppServer machine to the Web server root directory as follows:
a)	Create a directory called 2.0 off the Web server document root directory.
b)	Copy the cabinet files to the 2.0 directory. 																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																				
c)	Copy sportspro.prowcapc to the Web server document root directory.
2 	Configure (if not already configured) and start an instance of the AppServer Internet Adapter to run as a Java servlet in the Java Servlet Engine and to access the AppServer served by asbroker1. 
A.4	Installing and Running the Application on the Client Machine 
Follow these steps to install and launch the application on the client machine: 
1 	Use a Web browser (Internet Explorer or Netscape 4.1 or newer) to go to the following URL, where YourDomainName represents the domain name of your Web server: 
http://YourDomainName/web_image/bootstrap.htm
2 	To install WebClient and the Sportspro application, respond to the prompts. The application will be installed.
NOTE:	The sample applications SmartB2B and SonicMQ buttons invoke options not yet implemented.

