280 likes | 584 Views
BEA Tuxedo™ Quick Start. Overview and Introduction. 环境变量 : TUXDIR APPDIR PATH TUXCONFIG LD_LIBRARY_PATH LANG=C ; export LANG NLSPATH=$TUDIR/locale/C. Client Development. ATMI : tpinit() tpalloc() tpcall() tpfree() tpterm() Command: buildclient. tpacall() tpgetrply().
E N D
Overview and Introduction 环境变量: • TUXDIR • APPDIR • PATH • TUXCONFIG • LD_LIBRARY_PATH • LANG=C; export LANG • NLSPATH=$TUDIR/locale/C
Client Development ATMI: • tpinit() • tpalloc() • tpcall() • tpfree() • tpterm() Command: • buildclient • tpacall() • tpgetrply()
Server Development ATMI: • tpsvrinit() • tpsvrdone() Command: • buildserver
Application Configuration UBB File: • *RESOURCES:系统信息 • *MACHINES:机器信息 • *GROUPS:本机器内分组信息 • *SERVERS:Tuxedo服务器程序参数 • *SERVICES:服务参数 • *NETGROUPS:网络相关信息 • *NETWORK:网络信息 • *ROUTING:路由信息。 Command: • tmloadcf
Administrative Commands • tmboot • tmshutdown • tmadmin • psr: server信息 • psc:service 信息 • pq:队列信息 • pclt:客户信息 • migg:服务器迁移 pq:队列信息 pq:队列信息
Buffer Types • STRING:字符串类型,以0为结束标志 • CARRAY:定长的二进制数据buffer类型,可存储任何内容的数据 • VIEW / VIEW32:使用C的struct结构类型进行定义的多个字段的数据结构 • FML / FML32:采用“变量名-值”的格式来存储数据,没有固定结构的buffer类型
Data Dependent Routing UBB File: *SERVICES TOUPPER ROUTING=aaa ----------指定路由 *ROUTING -----------定义路由标准 aaa FIELD=CUST_ID -----------Buffer字段 BUFTYPE="FML" -----------Buffer类型 RANGES="1-800:GROUP1, ------------路由标准 801-1000:GROUP2"
Networking *RESOURCES ... MODEL MP ... *MACHINES Machine1 LMID=site1 ... Machine2 LMID=site2 ...
Networking *GROUPS GROUP1 LMID=site1 GRPNO=1 OPENINFO=NONE GROUP2 LMID=site2 GRPNO=2 OPENINFO=NONE *SERVERS DEFAULT: CLOPT="-A" simpserv SRVGRP=GROUP1 SRVID=1 simpserv SRVGRP=GROUP2 SRVID=1
Networking *NETWORK site1 NADDR="//192.1.1.10:5000" NLSADDR="//192.1.1.10:3050" site2 NADDR="//192.1.1.1:5000" NLSADDR="//192.1.1.1:3051" ... • tlisten
Distributed Transaction Processing UBB File: • TLOGDEVICE • TLOGNAME • TLOGSIZE • TMSNAME • TMSCOUNT • OPENINFO RM file
Distributed Transaction Processing Commands: • tmadmin: 创建交易日志文件 • buildtms: 编译TMS应用 • buildclient, buildserver: -r ATMI: • tpbegin():开始一个交易 • tpcommit():提交一个交易 • tpabort():中断一个交易 • tpopen():打开资源管理器 • tpclose():关闭资源管理器
AdminAPI (MIB) ATMI: • tpcall(".TMIB",(char *) ibuf,0,(char **)&ibuf,&blen,0) • tpadmcall(ibuf,&ibuf,0)
Security Commands: • tpgrpadd ->tpgrp • tpusradd -> tpusr UBB Files: • APP_PW • USER_AUTH • MANDATORY_ACL
Event Broker ATMI: • tpsubscribe() • tpunsubscribe() • tppost() UBB File: … *SERVERS TMUSREVT SRVGRP=GROUP1 SRVID=2 CLOPT="-A“ …
Queued Message ATMI: • tpenqueue() • tpdequeue() 环境变量: • QMCONFIG Command: • qmadmin
Queued Message UBB File: *SERVERS … TMQUEUE SRVGRP = QUE1 SRVID = 1 GRACE = 0 RESTART = Y CONV = N MAXGEN=10 CLOPT = "-s QSPACE:TMQUEUE -- " TMQFORWARD SRVGRP=QUE1 SRVID= 5 GRACE=0 RESTART=Y CONV=N MAXGEN=10 CLOPT="-- -i 2 -q TOUPPER"
Conversations ATMI: • tpconnect():建立连接 • tpsend():在对话中传送信息 • tprecv():在对话中接受信息 • discon():终止对话 UBB File: … *SERVERS simpserv SRVGRP=GROUP1 SRVID=1 CONV=Y …
Unsolicited Notification ATMI: • tpsetunsol() • tpchkunsol() • tpnotify() • tpbroadcast()
Workstation Client UBB File: MAXACCESSERS, MAXWSCLIENTS WSL SRVGRP=GROUP1 SRVID=3 RESTART=Y MAXGEN=3 CLOPT="-A -- -n //PATRICKD:32003 -m 5 -M 30 -x 5 -T 10 -t 10" 环境变量: • WSNADDR Command: • buildclient –w …
Domains UBB File: *SERVERS DMADM SRVGRP=LDMGRP SRVID=1 GWADM SRVGRP=LGWGRP SRVID=1 GWTDOMAIN SRVGRP=LGWGRP SRVID=2 DMCONFIG File 环境变量: • BDMCONFIG Command: • tmloadcf • dmloadcf
Tuxedo Quick Start Questions?
Tuxedo Quick Start - The End – Thank You