SNAX Creator-2 Configuration and Control Manual

Load-Balancing Pathway Applications
Configuration Examples
C–4 117143 SNAX Creator-2 Configuration and Control Manual
The application named mail is configured as follows:
ADD APPL $CREA.C-mail
, METHOD SERVER
, SERVER $serv1
, MESSAGE "[#1:3]"
If the user data is:
mydata1, mydata2, mydata3, mydata4
then the value of the MESSAGE attribute is:
mydata1,mydata2,mydata3
Additional arguments, such as mydata4, are ignored.
Using an Entry With the
[#OPENNAME] and
[#SERVICE] Functions
This example shows how to derive a value for the MESSAGE attribute using an entry
and the [#OPENNAME] and [#SERVICE] built-in functions. [#OPENNAME]
provides the logon terminal name and [#SERVICE] provides the name of the
application requested by the logon.
Suppose SNAX Creator-2 is configured with:
ADD ENTRY $CREA.entry1
, TEXT "[#OPENNAME] [#SERVICE]"
ADD APPL $CREA.C-myserv
, METHOD SERVER
, SERVER $serv1
, MESSAGE [entry1]
When a terminal named \node.$line.#ZR00000 attempts to log on to an
application named myserv, entry1 is evaluated as:
\node.$line.#ZR00000 myserv
and this becomes the value of the MESSAGE attribute.
Load-Balancing
Pathway Applications
The following examples show ways to load-balance consecutive logon requests to
Pathway applications. In these examples, the PATHMON process is configured to
assign the application named sco3270 to three programs, each in a different TCP as
follows:
PATHCOM $pmon
=SET PROGRAM TYPE IBM-3270 (INITIAL sco3270)
=SET PROGRAM TCP tcp-1
=ADD PROGRAM myprog-1
=SET PROGRAM TCP tcp-2
=ADD PROGRAM myprog-2
=SET PROGRAM TCP tcp-3
=ADD PROGRAM myprog-3