Kbase 16043: WebSpeed 1.0 - Steps to Run the Demo On Unix
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/21/2000 |
|
Perform the following steps to run the demo provided with
WebSpeed 1.0 on UNIX
NOTE: $DLC is the Environment variable that indicates where WebSpeed
is installed.
1) Verify that the following files are in the appropriate
directories:
$DLC/WTB.CNF
$DLC/TAGMAP.DAT
$DLC/BIN/_WTB.EXE
$DLC/BIN/_WTBMAN.EXE
$DLC/BIN/CGIIP.EXE
$DLC/BIN/WTBMAN
2) Create a directory called MYFILES in the Web Server's
cgi-bin directory:
3) Copy the files in the $DLC/src/web/examples to the
/usr1/web/cgi-bin/myfiles directory
e.g., ncust-wo.w, ncust-wo.htm, ncust-wo.off
4) Copy the "wtb" or "wtb1" and the "wtbman" scripts in
$DLC/bin to your directory where your .w's, .htm's, and
.off files reside.
e.g., /usr1/web/cgi-bin/myfiles
5) Modify the PROPATH in the script that starts the
WebSpeed Transaction Broker -- "wtb"
PROPATH should include the directory where the .w's,
.htm's, and .off's live (which should the same directory).
e.g., PROPATH=/usr1/web/cgi-bin/myfiles:$PROPATH; export
PROPATH
-OR-
If you installed the Test ITP Engine, add a line for the
PROPATH in the "wtb1" shell script.
6) Copy the "wtb.cnf" file from $DLC to your directory
where the .w's, .htm's, and .off files reside.
e.g., /usr1/web/cgi-bin/myfiles
7) Modify the wtb.cnf file:
"Port" This is the same port# that will be
specified in the messenger.sh script.
"WtbRootDirectory" location of the _wtb executable
i.e. $DLC/bin if $DLC/bin is not in the PATH
-OR-
directory where the logs directory will
reside (for WebSpeed Transaction Broker)
"ErrorLogFileName" location and name of the error
log file. If the absolute path is not
specified the WtbRootDirectory will be
prepended before logs/error_log.
"SessionLogFileName" location and name of the session
log file. If the absolute path is not
specified the WtbRootDirectory will be
prepended before logs/session_log.
"Wtcparams" specifiy:
-H {name of machine where the database resides}
-S {service name - port where the database resides}
-weblog if you want to log Progress error messages
(that occur as a result of compile and/or run-time
error messages in the WebObject) to go
to the error_log file in the logs
directory, if this parameter is not
specified, then compile and run-time errors
will go to the Web Browser
*In order to test out the demo provided,
you need to connect to the Progress
sports database. Start up a Progress database
server running the sports database.
To run the demo using a single-user
database remove -H and -S parameters and
add the absolute path to the database
name followed by -1.
8) Start the WebSpeed Transaction Broker by performing
the following steps:
cd /usr1/cgi-bin/myfiles
wtb . this line starts the
broker using the "wtb"
shell script, the "."
tells the broker to look
for the "wtb.cnf" file
in the current directory
wtb1 . Type this line to start
the broker if you
installed the ITP Test
Engine
wtbman 2000 status 2000 is the default port
specified in the
"wtb.cnf" file where the
broker resides
This line will return
the status of the agents
if you are running the
test engine then only 1
agent will appear
otherwise, 5 agents will
appear (default setting
in the "wtb.cnf" file)
9) Creation of a shell script that runs the WebSpeed
Messenger so that a URL entered in the Web Browser gets
from the Web Server to a WebSpeed Agent:
a) script name: messenger.sh
b) script contents: #!/bin/sh
$DLC/bin/cgiip {host} 2000
**note {host} is the name of the machine where the
WebSpeed Transaction broker is running
c) Place this script in the /usr1/web/cgi-bin/myfiles
directory
10) Running the demo:
a) start up your Web Browser
b) enter the following URL:
http://{host}foo/cgi-bin/myfiles/messenger.sh
cust-wo.w
A page should appear in your Web Browser