Kbase 16021: WebSpeed 1.0 - Starting a Transaction Broker and Agents (NT)
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  07/06/1998 |
|
The following steps show how to bring up the WebSpeed Transaction Broker on Windows NT.
1) Install Transaction Server (run setup.exe) \wsrt
(default dir)
2) Create a working directory
3) Copy the wtb.bat and wtbman.bat files from the \wsrt\bin
directory to the working directory;
4) Copy wtb.cnf file from \wsrt directory to the working
directory
5) Copy c:\wsrt\src\web\examples\ncust-wo.w to the working
directory
c:\wsrt\src\web\examples\ncust-wo.off
c:\wsrt\src\web\examples\ncust-wo.htm
6) Modify your WTB.CNF: (For a detailed description of the
wtb.cnffile, see Kbase entry #16153
BrokerPort This is the same port number that will be
specifiedin the .wsc file (port# of the NT
box running as the Web Server)
NOTE: See item #5 for description of .wsc
file.
AgentMinPort The default value is fine.
AgentMaxPort The default value is fine.
StartInstances 5 (default);
1 for single user mode.
BeginNewInstances 1 (default);
0 for single user mode.
MaxInstances 10 (default);
1 for single user mode.
#User Comment out for NT
#Group Comment out for NT
DefaultDirectory: absolute pathname to working directory
ErrorLogFilename: error.log
SessionLogFilename: session.log
ExecutableFilename c:\wsrt\bin\_wta.exe (used to spawn
agents)
AgentParams -db dbname -H host -S service -N tcp
-p web/objects/web-disp.p
-cpstream iso8859-1
NOTE: For single user remove -H, -S and -N and add the
complete path to the database with the -1 startup
parameter.
7) Setting PROPATH:
Make sure your propath is in the [Dos Startup] section
of the c:\wsrt\bin\progress.ini and includes the path to
the web server directory where scripts will reside.
e.g., PROPATH=C:\website\cgi-bin\myfiles;%PROPATH%
(where website is the installation directory of the web
server software being used...in this case, WebSite)
8) Create a file (i.e. messenger.wsc) using any editor (vi
or editor). In this file you need the name of the
machine hosting the broker and the port specified in the
WTB.cnf file for BrokerPort parameter.
.wsc file contents: BROKERHOST 2000
You then need to use the NT File Manager (NT 3.51) or
Explorer (NT 4.0), to associate this file to the
WebSpeed CGI: c:\wsrt\bin\cgiip.exe
Copy this messenger.wsc file to your cgi-bin or scripts
directory on your Web server.
NOTE: If you are using Microsoft's IIS Web Server
(Internet Information Server) on NT, additional
configuration is required to make the '.wsc'
files, used with WebSpeed, executable. See KBase
#16091:
9) Before running your WTB.bat make sure you have added the
c:\wsrt\bin to your PATH environment.
(set path=c:\wsrt\bin;%path%)
You can now start your broker: wtb <location of wtb.cnf>
If the AgentParams in the wtb.cnf file are incorrect,
errors may not be returned; instead, agents will not
start.
To verify the agents are running, from a DOS box, run:
wtbman port# status
The black DOS screen is normal after the broker starts.
If no agents are running then you should use the
Progress Data Admin:
c:\wsrt\bin\prowin32.exe -p _admin.p
and verify that Progress can connect remotely or single
user.
10) Running the Demo:
1. Start up your Web browser
2. Enter the following URL
http://webserver_machine_name/cgi-bin/
messenger.wsc
cust-wo.w