
Modernizing Oracle Tuxedo Applications with Python
By :

Every buffer type supported by Tuxedo can be imported and exported in the same way. When you are using Python, it does not sound that impressive because it is very easy to either store the Python dictionary itself or convert it to JSON, XML, or any other type. However, C does not come with batteries included and this import and export capability is often used to persist messages in files or a database.
There are two modes for the format of exported data. The first and the default one is a binary representation as the Python bytes
type. The second format is a Base64 representation of the same bytes and it has to be explicitly turned on by using the TPEX_STRING
flag. While the second format is a bit longer, it is more friendly for logfiles and storing them in a database. Nothing stops you from encoding the binary representation yourself, but using TPEX_STRING
is shorter and probably faster as well. The functions for doing imports and exports are...