Kbase 17260: How To Define Unique PROPATH For Each Service.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
GOAL:
How to define unique PROPATH for each service.
FACT(s) (Environment):
Windows NT 4.0
Webspeed 2.x
FIX:
On NT, when setting up multiple services, it is possible to define unique socket values and logfile locations for each of the services. It is not possible, however, to define a unique PROPATH, (Tab folder 4). The PROPATH ends up global for all services.
On UNIX, simply set the PROPATH environment variable before starting
the broker.
To define a unique PROPATH for each service when running
WebSpeed 2.x on NT, then do like the program below describes.
/*
agent-init.p
Initialize WebSpeed Agents differently depending on the service name.
This is useful on Windows NT, where it is not possible to change
the PROPATH for individual services.
Edit this file appropriately for the configuration so any service
optionally has it's own PROPATH and/or connects to it's own database(s
).
Install this file in the shared working directory in the PROPATH and
adjust the Agent startup parameters to run this file instead of
web-disp.p:
-p agent-init.p
in addition if different services connect to different databases,
remove
any database connection options from the Agent startup parameters and
use CONNECT statements in this file instead.
*/
/* Get the service or configuration name under which we're running.
Adjust the PROPATH and connect to the appropriate database(s) */
CASE WEB-CONTEXT:CONFIG-NAME:
WHEN "WSjpe1" OR WHEN "WSjpe2" THEN DO:
/* PROPATH = "". */ /* Reset to Agent default (optional) */
PROPATH = "W:\WSDev\WSjpe," + PROPATH.
CONNECT -pf websport.pf.
END.
WHEN "WSbillb" THEN DO:
PROPATH = "W:\WSDev\billb," + PROPATH.
CONNECT -pf websport.pf.
END.
/* Handle WSBroker, etc. */
OTHERWISE DO:
CONNECT -pf websport.pf.
END.
END.
/* Run standard Agent initialization */
RUN web/objects/web-disp.p.
/* end */