没有合适的资源?快使用搜索试试~ 我知道了~
首页tuxedo 编程api速查
资源详情
资源推荐
BEA
Tuxedo
®
Programming a BEA
Tuxedo ATMI Application
Using C
Version 10.0
Document Released: September 28, 2007
Programming a BEA Tuxedo ATMI Application Using C iii
Contents
1. Introduction to BEA Tuxedo Programming
BEA Tuxedo Distributed Application Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Communication Paradigms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
BEA Tuxedo Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
BEA Tuxedo Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Basic Server Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
Servers as Requesters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
BEA Tuxedo API: ATMI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
2. Programming Environment
Updating the UBBCONFIG Configuration File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
Setting Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Including the Required Header Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
Starting and Stopping the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
3. Managing Typed Buffers
Overview of Typed Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Allocating a Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Putting Data in a Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
Resizing a Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Checking for Buffer Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15
Freeing a Typed Buffer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16
Using a VIEW Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17
iv Programming a BEA Tuxedo ATMI Application Using C
Setting Environment Variables for a VIEW Typed Buffer . . . . . . . . . . . . . . . . . . 3-18
Creating a View Description File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19
Executing the VIEW Compiler. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-22
Using an FML Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-23
Setting Environment Variables for an FML Typed Buffer . . . . . . . . . . . . . . . . . . 3-23
Creating a Field Table File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
Creating an FML Header File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25
Using an XML Typed Buffer and the Apache Xerces C++ Parser . . . . . . . . . . . . . . . 3-26
About the XML Typed Buffer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-27
About the Apache Xerces C++ Parser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
XML Parser Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28
XML Parser Support for ICU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
XML Parser Sample Application. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
Xerces Schema Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
Converting XML Data To and From FML/FML32 Buffers. . . . . . . . . . . . . . . . . 3-29
Using On-Demand Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-30
Using Automatic Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-31
Mapping XML To and From FML/FML32 Field Types . . . . . . . . . . . . . . . . 3-34
Conversion Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38
Using an MBSTRING Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-40
Multibyte Character Encoding Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-42
Enabling MBSTRING to be Self-describing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
Safe/Unsafe Encoding Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-46
Multibyte Character Support Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-47
Multibyte Character Encoding Support for libiconv. . . . . . . . . . . . . . . . . . . . . . . 3-47
Customizing a Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-49
Defining Your Own Buffer Types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-51
Programming a BEA Tuxedo ATMI Application Using C v
Coding Switch Element Routines. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-59
Adding a New Buffer Type to tm_typesw . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-60
Compiling and Linking Your New tm_typesw . . . . . . . . . . . . . . . . . . . . . . . 3-61
Compiling and Linking Your New tm_typesw for a 16-bit Windows Platform . .
3-62
Data Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-63
4. Writing Clients
Joining an Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Using Features of the TPINIT Typed Buffer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
Client Naming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4
Unsolicited Notification Handling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-5
System Access Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Resource Manager Association. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Client Authentication. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Leaving the Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
Building Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
See Also. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Client Process Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
5. Writing Servers
BEA Tuxedo System main( ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
System-Supplied Server and Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
System-Supplied Server: AUTHSVR( ) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
System-Supplied Services: tpsvrinit( ) Function. . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Receiving Command-line Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Opening a Resource Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5
System-Supplied Services: tpsvrdone( ) Function. . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Guidelines for Writing Servers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
剩余323页未读,继续阅读
ycf74514
- 粉丝: 22
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 共轴极紫外投影光刻物镜设计研究
- 基于GIS的通信管线管理系统构建与音视频编解码技术应用
- 单站被动目标跟踪算法:空频域信息下的深度研究与进展
- 构建通信企业工程项目的项目管理成熟度模型:理论与应用
- 基于控制理论的主动队列管理算法与稳定性分析
- 谷歌文件系统下的实用网络编码技术在分布式存储中的应用
- CMOS图像传感器快门特性与运动物体测量研究
- 深孔采矿研究:3D数据库在采场损失与稳定性控制中的应用
- 《洛神赋图》图像研究:明清以来的艺术价值与历史意义
- 故宫藏《洛神赋图》图像研究:明清艺术价值与审美的飞跃
- 分布式视频编码:无反馈通道算法与复杂运动场景优化
- 混沌信号的研究:产生、处理与通信系统应用
- 基于累加器的DSP数据通路内建自测试技术研究
- 跨国媒体对南亚农村社会的影响:以斯里兰卡案例的社会学分析
- 散单元法与CFD结合模拟气力输送研究
- 基于粒化机理的粗糙特征选择算法:海量数据高效处理研究
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功