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

Forwarding messages

Tuxedo comes with a TMQFORWARD server that dequeues a message from the queue and sends it to a service with the same name as the queue. It also uses the number of retries and the interval between retries we configured for the queues to perform retries if the service fails.

We configured the queues to do 3 retries with a 5-second interval. That enables you to create a store and forward solution that works with unreliable destinations and can tolerate temporary network failures or downtime during system upgrades.

Several highly available and reliable systems are built by having persistent request and response queues on the system boundary. Each request is persistent and then processed by the system. If the system fails, the request is retried. Once it succeeds, the request is removed from the queue and the response is persisted. We will use Tuxedo to recreate this solution now.

We start by updating our ubbconfig file with the highlighted lines:

*RESOURCES...