You need to read sections "5.1.1 Running Mutliple Instances of STAFProc"
and "5.2 STAF" in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRSTPROC.
Note that each instance of STAFProc does not need a different nickname.
However, each instance of STAFProc that's running concurrently with
another instance of STAFProc must use:
- A unique port when configuring the tcp interface. Note that the default
port for the non-secure tcp interface for STAF is 6500. This is
configured in the STAF.cfg file by adding the port option to the interface
tcp line. For example:
interface tcp library STAFTCP option port=6501
- A unique STAF_INSTANCE_NAME (which will make each STAFProc instance use
a different data directory assuming you are using the default setting for
the data directory). This is an environment variable set before starting
STAFProc. On Unix machines, you can set the STAF_INSTANCE-NAME by running
the STAFEnv.sh shell script and passing it the STAF_INSTANCE_NAME you want
to use. Note that thedefault for STAF_INSTANCE_NAME is STAF.
So, for example on a Linux machine where STAF is installed at
/usr/local/staf, you could have /usr/local/staf/bin/STAF.cfg use a tcp
interface with port 6500 (the default) and use this and log on as the root
user and start STAFProc using the default STAF.cfg file (e.g. using port
6500) and default STAF_INSTANCE_NAME (STAF):
cd /usr/local/staf
. ./STAFEnv.sh
STAFProc &
Then you could log on as the oracle user. Copy the
/usr/local/staf/bin/STAF.cfg file to /usr/local/staf/bin/STAF6501.cfg and
edit it to have the tcp interface use port 6501. Then you could start
STAFProc using this default STAF.cfg file and STAF_INSTANCE_NAME STAF6501
as follows:
cd /usr/local/staf
. ./STAFEnv.sh STAF6501
STAFProc /usr/local/staf/bin/STAF6501.cfg &
Then you could log on as the test1 user. Copy the
/usr/local/staf/bin/STAF.cfg file to /usr/local/staf/bin/STAF6502.cfg and
edit it to have the tcp interface use port 6502. Then you could start
STAFProc using this default STAF.cfg file and STAF_INSTANCE_NAME STAF6502
as follows:
cd /usr/local/staf
. ./STAFEnv.sh STAF6502
STAFProc /usr/local/staf/bin/STAF6502.cfg &
To communicate to the STAF instance logged on as root that uses port 6500,
you can specify your machine host name or IP name, appending @6500. For
example, if your host name is client1.company.com:
STAF [EMAIL PROTECTED] VAR LIST
To communicate to the STAF instance logged on as oracle that uses port
6501, you can specify your machine host name or IP name, appending @6501.
For example, if your host name is client1.company.com:
STAF [EMAIL PROTECTED] VAR LIST
To communicate to the STAF instance logged on as test1 that uses port
6521, you can specify your machine host name or IP name, appending @6502.
For example, if your host name is client1.company.com:
STAF [EMAIL PROTECTED] VAR LIST
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
----- Forwarded by Sharon Lucas/Austin/IBM on 06/16/2008 09:48 AM -----
[EMAIL PROTECTED]
06/16/2008 02:01 AM
To
[EMAIL PROTECTED]
cc
Subject
Uncaught bounce notification
----- Message from "Shuki Zaitman" <[EMAIL PROTECTED]> on Mon, 16 Jun 2008
10:01:19 +0300 -----
To:
<[EMAIL PROTECTED]>
Subject:
multi "STAFProc instances" per host
HI,
I need different instances on specified host (for example firs as root
second as user oracle and the third as test1 user). As I?m understood I
need to configure three different of cfg file.
My questions are:
1. How (different MACHINENICKNAME)?
2. How I call/sent request for each of them?
Regards,
Shuki
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users