![]() |
![]() |
|
|
What Are Typed Buffers?
All ATMI functions send or receive data using typed buffers. The BEA Tuxedo system handles translations and data conversions between dissimilar machines. By using buffers, BEA Tuxedo programs avoid the need to translate data that crosses different platforms with different data representations.
A buffer is a memory area that serves as a logical container for data. When a buffer contains no metadata (that is, no information about itself), then it is an untyped buffer. When a buffer includes metadata such as information that can be stored in it (for example, a type and subtype, or string names that characterize a buffer), then it is a typed buffer.
Typed buffers can be transmitted over any network, on any operating system, with any protocol supported by the BEA Tuxedo system. They can also be used on platforms with different data representations. As a result, the use of typed buffers facilitates the tasks of translation and data conversion between dissimilar machines.
The BEA Tuxedo system supports five sorts of typed buffers:
You assign buffer types in the ENVFILE parameter defined in the MACHINES section of the configuration file. Assigning or overriding them in the ENVFILE parameter in the SERVERS section of the configuration file can make them unavailable to processes that require them.
Definitions of the various types of message buffers are provided in the description of tm_typesw in tuxtypes(5) in the File Formats, Data Descriptions, MIBs, and System Processes Reference. It is to your advantage to change tm_typesw so it contains only buffer types specifically needed by a given server.
Characteristics of Buffer Types
When you use ATMI communication functions, your application must first use tpalloc to get a buffer from the system, specifying its size, type, and optionally subtype. The BEA Tuxedo system recognizes and processes the buffer type, so that your data is transmitted over any type of network, protocol, and operating system supported by the BEA Tuxedo system. The following table describes the different types of buffers available in a BEA Tuxedo environment.
See Also
![]() |
![]() |
![]() |
|
Copyright © 2001 BEA Systems, Inc. All rights reserved.
|