Book Image

Modernizing Oracle Tuxedo Applications with Python

By : Aivars Kalvans
Book Image

Modernizing Oracle Tuxedo Applications with Python

By: Aivars Kalvans

Overview of this book

Despite being developed in the 1980s, Oracle Tuxedo still runs a significant part of critical infrastructure and is not going away any time soon. Modernizing Oracle Tuxedo Applications with Python will help you get to grips with the most important Tuxedo concepts by writing Python code. The book starts with an introduction to Oracle Tuxedo and guides you in installing its latest version and Python bindings for Tuxedo on Linux. You'll then learn how to build your first server and client, configure Tuxedo, and start running an application. As you advance, you'll understand load balancing and work with the BBL server, which is at the heart of a Tuxedo application. This Tuxedo book will also cover Boolean expressions and different ways to export Tuxedo buffers for storage and transmission, before showing you how to implement servers and clients and use the management information base to change the configuration dynamically. Once you've learned how to configure Tuxedo for transactions and control them in application code, you'll discover how to use the store-and-forward functionality to reach destinations and use an Oracle database from a Tuxedo application. By the end of this Oracle Tuxedo book, you'll be able to perform common Tuxedo programming tasks with Python and integrate Tuxedo applications with other parts of modern infrastructure.
Table of Contents (18 chapters)
1
Section 1: The Basics
6
Section 2: The Good Bits
12
Section 3: Integrations

Introducing MIB

MIB is a unified interface for the administration of Tuxedo applications. The interface uses FML32 typed buffers and fields that are defined in files under the $TUXDIR/udataobj directory of a Tuxedo installation. There are multiple MIBs for different Tuxedo components, such as Domains, EventBroker, and Workstation. However, each of these components is beyond the scope of this book. Here, we will keep our focus on TM_MIB, which provides information about the Tuxedo core.

The most common way to interact with the MIB is by calling the .TMIB service provided by the BBL server. You can do this without writing any code by using the ud32 utility. Note that we have used this in our examples in the previous chapters. The one obvious limitation of using the .TMIB service is that the BBL server must be kept running.

The second way to interact with the MIB is by using the tpadmcall API function, which works even when the application is not running or has not been configured...