Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Modernizing Oracle Tuxedo Applications with Python
  • Toc
  • feedback
Modernizing Oracle Tuxedo Applications with Python

Modernizing Oracle Tuxedo Applications with Python

By : Kalvans
4.8 (8)
close
Modernizing Oracle Tuxedo Applications with Python

Modernizing Oracle Tuxedo Applications with Python

4.8 (8)
By: 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)
close
1
Section 1: The Basics
6
Section 2: The Good Bits
12
Section 3: Integrations

Writing to ULOG

By now, you should have noticed files such as ULOG.mmddyy appearing in the directory when you start the Tuxedo application. mmddyy consists of the current month, date, and year. So far, this log file contains only messages created by Tuxedo itself.

Tuxedo also exposes a function to write messages to this log file. The function is called userlog and can be used from both Tuxedo clients and servers. Here is an example of how to use it:

import tuxedo as t
t.userlog("Hello, ULOG")

After calling the function, a line similar to the following should be present in the ULOG:

181928.15c365dcb562!?proc.1737.2520094528.-2: Hello, ULOG

Using the userlog function is convenient for code examples and quick debugging but it lacks many features we take for granted. Every logging library provides features such as logging levels, formatters, filters, and many more that the ULOG is lacking. For a real-world application, you should leave ULOG for Tuxedo system messages...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete