1 / 24

BEA Tuxedo™ Quick Start

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().

svein
Download Presentation

BEA Tuxedo™ Quick Start

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BEA Tuxedo™Quick Start

  2. Overview and Introduction 环境变量: • TUXDIR • APPDIR • PATH • TUXCONFIG • LD_LIBRARY_PATH • LANG=C; export LANG • NLSPATH=$TUDIR/locale/C

  3. Client Development ATMI: • tpinit() • tpalloc() • tpcall() • tpfree() • tpterm() Command: • buildclient • tpacall() • tpgetrply()

  4. Server Development ATMI: • tpsvrinit() • tpsvrdone() Command: • buildserver

  5. Application Configuration UBB File: • *RESOURCES:系统信息 • *MACHINES:机器信息 • *GROUPS:本机器内分组信息 • *SERVERS:Tuxedo服务器程序参数 • *SERVICES:服务参数 • *NETGROUPS:网络相关信息 • *NETWORK:网络信息 • *ROUTING:路由信息。 Command: • tmloadcf

  6. Administrative Commands • tmboot • tmshutdown • tmadmin • psr: server信息 • psc:service 信息 • pq:队列信息 • pclt:客户信息 • migg:服务器迁移 pq:队列信息 pq:队列信息

  7. Buffer Types • STRING:字符串类型,以0为结束标志 • CARRAY:定长的二进制数据buffer类型,可存储任何内容的数据 • VIEW / VIEW32:使用C的struct结构类型进行定义的多个字段的数据结构 • FML / FML32:采用“变量名-值”的格式来存储数据,没有固定结构的buffer类型

  8. 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"

  9. Networking *RESOURCES ... MODEL MP ... *MACHINES Machine1 LMID=site1 ... Machine2 LMID=site2 ...

  10. 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

  11. 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

  12. Distributed Transaction Processing UBB File: • TLOGDEVICE • TLOGNAME • TLOGSIZE • TMSNAME • TMSCOUNT • OPENINFO RM file

  13. Distributed Transaction Processing Commands: • tmadmin: 创建交易日志文件 • buildtms: 编译TMS应用 • buildclient, buildserver: -r ATMI: • tpbegin():开始一个交易 • tpcommit():提交一个交易 • tpabort():中断一个交易 • tpopen():打开资源管理器 • tpclose():关闭资源管理器

  14. AdminAPI (MIB) ATMI: • tpcall(".TMIB",(char *) ibuf,0,(char **)&ibuf,&blen,0) • tpadmcall(ibuf,&ibuf,0)

  15. Security Commands: • tpgrpadd ->tpgrp • tpusradd -> tpusr UBB Files: • APP_PW • USER_AUTH • MANDATORY_ACL

  16. Event Broker ATMI: • tpsubscribe() • tpunsubscribe() • tppost() UBB File: … *SERVERS TMUSREVT SRVGRP=GROUP1 SRVID=2 CLOPT="-A“ …

  17. Queued Message ATMI: • tpenqueue() • tpdequeue() 环境变量: • QMCONFIG Command: • qmadmin

  18. 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"

  19. Conversations ATMI: • tpconnect():建立连接 • tpsend():在对话中传送信息 • tprecv():在对话中接受信息 • discon():终止对话 UBB File: … *SERVERS simpserv SRVGRP=GROUP1 SRVID=1 CONV=Y …

  20. Unsolicited Notification ATMI: • tpsetunsol() • tpchkunsol() • tpnotify() • tpbroadcast()

  21. 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 …

  22. 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

  23. Tuxedo Quick Start Questions?

  24. Tuxedo Quick Start - The End – Thank You

More Related