Bea tuxedo quick start
This presentation is the property of its rightful owner.
Sponsored Links
1 / 24

BEA Tuxedo™ Quick Start PowerPoint PPT Presentation


  • 170 Views
  • Uploaded on
  • Presentation posted in: General

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

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Bea tuxedo quick start

BEA Tuxedo™Quick Start


Overview and introduction

Overview and Introduction

环境变量:

  • TUXDIR

  • APPDIR

  • PATH

  • TUXCONFIG

  • LD_LIBRARY_PATH

  • LANG=C; export LANG

  • NLSPATH=$TUDIR/locale/C


Client development

Client Development

ATMI:

  • tpinit()

  • tpalloc()

  • tpcall()

  • tpfree()

  • tpterm()

    Command:

  • buildclient

  • tpacall()

  • tpgetrply()


Server development

Server Development

ATMI:

  • tpsvrinit()

  • tpsvrdone()

    Command:

  • buildserver


Application configuration

Application Configuration

UBB File:

  • *RESOURCES:系统信息

  • *MACHINES:机器信息

  • *GROUPS:本机器内分组信息

  • *SERVERS:Tuxedo服务器程序参数

  • *SERVICES:服务参数

  • *NETGROUPS:网络相关信息

  • *NETWORK:网络信息

  • *ROUTING:路由信息。

    Command:

  • tmloadcf


Administrative command s

Administrative Commands

  • tmboot

  • tmshutdown

  • tmadmin

    • psr: server信息

    • psc:service 信息

    • pq:队列信息

    • pclt:客户信息

    • migg:服务器迁移

pq:队列信息

pq:队列信息


Buffer types

Buffer Types

  • STRING:字符串类型,以0为结束标志

  • CARRAY:定长的二进制数据buffer类型,可存储任何内容的数据

  • VIEW / VIEW32:使用C的struct结构类型进行定义的多个字段的数据结构

  • FML / FML32:采用“变量名-值”的格式来存储数据,没有固定结构的buffer类型


Data dependent routing

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

Networking

*RESOURCES

...

MODELMP

...

*MACHINES

Machine1LMID=site1

...

Machine2LMID=site2

...


Bea tuxedo quick start

Networking

*GROUPS

GROUP1

LMID=site1GRPNO=1OPENINFO=NONE

GROUP2

LMID=site2GRPNO=2 OPENINFO=NONE

*SERVERS

DEFAULT:

CLOPT="-A"

simpservSRVGRP=GROUP1 SRVID=1

simpservSRVGRP=GROUP2 SRVID=1


Networking1

Networking

*NETWORK

site1NADDR="//192.1.1.10:5000"

NLSADDR="//192.1.1.10:3050"

site2NADDR="//192.1.1.1:5000"

NLSADDR="//192.1.1.1:3051"

...

  • tlisten


Bea tuxedo quick start

Distributed Transaction Processing

UBB File:

  • TLOGDEVICE

  • TLOGNAME

  • TLOGSIZE

  • TMSNAME

  • TMSCOUNT

  • OPENINFO

    RM file


Bea tuxedo quick start

Distributed Transaction Processing

Commands:

  • tmadmin: 创建交易日志文件

  • buildtms: 编译TMS应用

  • buildclient, buildserver: -r

    ATMI:

  • tpbegin():开始一个交易

  • tpcommit():提交一个交易

  • tpabort():中断一个交易

  • tpopen():打开资源管理器

  • tpclose():关闭资源管理器


Adminapi mib

AdminAPI (MIB)

ATMI:

  • tpcall(".TMIB",(char *) ibuf,0,(char **)&ibuf,&blen,0)

  • tpadmcall(ibuf,&ibuf,0)


Security

Security

Commands:

  • tpgrpadd ->tpgrp

  • tpusradd -> tpusr

    UBB Files:

  • APP_PW

  • USER_AUTH

  • MANDATORY_ACL


Event broker

Event Broker

ATMI:

  • tpsubscribe()

  • tpunsubscribe()

  • tppost()

    UBB File:

    *SERVERS

    TMUSREVTSRVGRP=GROUP1 SRVID=2 CLOPT="-A“


Queued message

Queued Message

ATMI:

  • tpenqueue()

  • tpdequeue()

    环境变量:

  • QMCONFIG

    Command:

  • qmadmin


Queued message1

Queued Message

UBB File:

*SERVERS

TMQUEUE

SRVGRP = QUE1 SRVID = 1

GRACE = 0 RESTART = Y CONV = N MAXGEN=10

CLOPT = "-s QSPACE:TMQUEUE -- "

TMQFORWARD

SRVGRP=QUE1SRVID= 5 GRACE=0 RESTART=Y CONV=N MAXGEN=10

CLOPT="-- -i 2 -q TOUPPER"


Conversations

Conversations

ATMI:

  • tpconnect():建立连接

  • tpsend():在对话中传送信息

  • tprecv():在对话中接受信息

  • discon():终止对话

    UBB File:

    *SERVERS

    simpservSRVGRP=GROUP1 SRVID=1 CONV=Y


Unsolicited notification

Unsolicited Notification

ATMI:

  • tpsetunsol()

  • tpchkunsol()

  • tpnotify()

  • tpbroadcast()


Workstation client

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

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

Tuxedo Quick Start

Questions?


Tuxedo quick start1

Tuxedo Quick Start

- The End –

Thank You


  • Login