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

Chapter 11: Consuming External Services in Tuxedo

A Tuxedo application does not live in isolation; it has to interact with other parts of the system and external systems. In Chapter 10, Accessing the Tuxedo Application, we learned how to consume services provided by Tuxedo from other applications. Now we will change the direction of calls and consume external services in our Tuxedo application. Of all chapters in the book, this has the least to do with Tuxedo, having more to do with writing Python code itself. But practice makes perfect, and we will develop a couple of applications.

In this chapter, we will cover the following topics:

  • Consuming services
  • Handling stateful protocols

By the end of this chapter, you will know how to structure your code to best fit a Tuxedo application. You will also learn how you can use Tuxedo message queues to add non-functional features. Finally, you will learn how to use multi-threaded servers to keep the state for connections...