jinfeng_wang

G-G-S,D-D-U!

BlogJava 首页 新随笔 联系 聚合 管理
  400 Posts :: 0 Stories :: 296 Comments :: 0 Trackbacks
I. Native Client MODE
1)edit env var file, and load env:

TUXDIR=/home/oracle/tuxedo10gR3
APPDIR
=/home/test/atmi
TUXCONFIG
=$APPDIR/tuxconfig
PATH
=$PATH:$TUXDIR/bin
LD_LIBRARY_PATH
=$LD_LIBRARY_PATH:$TUXDIR/lib

export TUXDIR TUXCONFIG PATH LD_LIBRARY_PATH

   $source var

2)build server:
   $buildserver -o simpserv -f simpserv.c -s TOUPPER

3 build client:
  $buildclient -o simpcl -f simpcl.c

4)edit ubbconfig file:
  
*RESOURCES
IPCKEY          
69345

#Example:
#IPCKEY         
123456

DOMAINID        simpapp
MASTER          simple
MAXACCESSERS    
10
MAXSERVERS      
5
MAXSERVICES     
10
MODEL           SHM
LDBAL           N

*MACHINES
DEFAULT:
                APPDIR
="/home/test/atmi"
                TUXCONFIG
="/home/test/atmi/tuxconfig"
                TUXDIR
="/home/oracle/tuxedo10gR3"
#Example:
#               APPDIR
="/home/me/simpapp"
#               TUXCONFIG
="/home/me/simpapp/tuxconfig"
#               TUXDIR
="/usr/tuxedo"

rhelserver      LMID
=simple

#Example:
#beatux         LMID
=simple

*GROUPS
GROUP1
        LMID
=simple     GRPNO=1 OPENINFO=NONE

*SERVERS
DEFAULT:
                CLOPT
="-A"

simpserv        SRVGRP
=GROUP1 SRVID=1

*SERVICES
TOUPPER

5) start tuxedo server:
  $tmboot

6) execute the client:
  $simpcl "hello, world"



II) TUXEDO/WS  MODE
A)  SERVER
1) env var (as the upper)
2) build server(as the upper)
3) edit ubbconfig file:
 
*RESOURCES
IPCKEY          
69345

#Example:
#IPCKEY         
123456

DOMAINID        simpapp
MASTER          simple
MAXACCESSERS    
100
MAXSERVERS      
5
MAXSERVICES     
10
MODEL           SHM
LDBAL           N

*MACHINES
DEFAULT:
                APPDIR
="/home/test/atmi"
                TUXCONFIG
="/home/test/atmi/tuxconfig"
                TUXDIR
="/home/oracle/tuxedo10gR3"
#Example:
#               APPDIR
="/home/me/simpapp"
#               TUXCONFIG
="/home/me/simpapp/tuxconfig"
#               TUXDIR
="/usr/tuxedo"

rhelserver      LMID
=simple

MAXWSCLIENTS
=50

*GROUPS
GROUP1  LMID
=simple     GRPNO=1 OPENINFO=NONE
WSGRP   LMID=simple     GRPNO=2



*SERVERS
DEFAULT:
                CLOPT
="-A"

simpserv        SRVGRP
=GROUP1 SRVID=1
WSL             SRVGRP=WSGRP SRVID=10 RESTART=Y MAXGEN=10 GRACE=3600 CLOPT="-A -- -n//192.168.247.12
9:7110   -m 5 -M 10 -x 5"

*SERVICES
TOUPPER

4) start server :
    $tmboot

B) CLIENT
1)editenv var file, and load env file:
    
TUXDIR=/home/oracle/tuxedo10gR3
APPDIR
=/home/test/simpapp
TUXCONFIG
=$APPDIR/tuxconfig
PATH
=$PATH:$TUXDIR/bin
LD_LIBRARY_PATH
=$LD_LIBRARY_PATH:$TUXDIR/lib

WSNADDR=//192.168.247.129:7110


export TUXDIR APPDIR TUXCONFIG PATH LD_LIBRARY_PATH WSNADDR

   $source var

2)build client:
   $buildclient -o wsimpcl -f simpcl.c -w

3)run client
     $./wsimpcl
 
posted on 2009-05-26 13:44 jinfeng_wang 阅读(747) 评论(0)  编辑  收藏 所属分类: Linuxtuxedo

只有注册用户登录后才能发表评论。


网站导航: