tuxedo: 客户端远程调用与服务器监听配置

部署环境:客户端与服务器均为linux

客户端:

1、设置环境变量,WSNADDR,客户端程序会自动调用该变量

#!/bin/ksh
#

TUXDIR=/home/tuxedo/tuxedo11gR1
PATH=$TUXDIR/bin:.:$PATH
export TUXDIR PATH

WSNADDR=//192.168.102.100:9055
export WSNADDR

case `uname -s` in
    HP-UX)
        if [ -z "${SHLIB_PATH:=}" ]; then
            SHLIB_PATH=$TUXDIR/lib; export SHLIB_PATH
        else
            SHLIB_PATH=$TUXDIR/lib:$SHLIB_PATH; export SHLIB_PATH
        fi
        ;;
    AIX)
        if [ -z "${LIBPATH:=}" ]; then
            LIBPATH=$TUXDIR/lib; export LIBPATH
        else
            LIBPATH=$TUXDIR/lib:$LIBPATH; export LIBPATH
        fi
        ;;
    *)
        if [ -z "${LD_LIBRARY_PATH:=}" ]; then
            LD_LIBRARY_PATH=$TUXDIR/lib; export LD_LIBRARY_PATH
        else
            LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
        fi
        ;;
esac

# uncomment the following line if your system supports the LANG variable. SVR4
#       LANG=C; export LANG

2、安装好tuxedo客户端并编译client程序即可 

服务器:

1、配置WSL进程和配置WSH句柄进程

#
#  "BEA TUX-A11 Application Administration"
#  "/WS Configuration Lab"
#  "UBBconfig.template"
#  "Version 1.1"
#

*RESOURCES
IPCKEY                  123456
MASTER  SITE1
MODEL   SHM

*MACHINES
"centos"        LMID=SITE1
                APPDIR="/home/tuxedo/studylabA11/exercises/clnt"
                TUXCONFIG="/home/tuxedo/studylabA11/exercises/clnt/tuxconfig"
                TUXDIR="/home/tuxedo/tuxedo11gR1"
                MAXWSCLIENTS=5
#<SUB: Add the entry needed to set the maximum number of /WS clients to 5.>

*GROUPS
APPGRP
        LMID=SITE1
        GRPNO=1

WSGRP
        LMID=SITE1
        GRPNO=5

*SERVERS
serverws
        SRVID=1
        SRVGRP=APPGRP
        CLOPT="-A"

WSL
        SRVID=10
        SRVGRP=WSGRP
        RESTART=Y
        MAXGEN=10
        GRACE=3600
        CLOPT="-A -- -n //192.168.102.100:9055 -m 2"

 

2、运行服务程序即可

 

你可能感兴趣的:(服务器,application,System,AIX,Path,library)