Sindbad~EG File Manager
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Berkeley DB X/Open Compliant XA Resource Manager</title>
<link rel="stylesheet" href="gettingStarted.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
<link rel="start" href="index.html" title="Berkeley DB Installation and Build Guide" />
<link rel="up" href="upgrade_52_toc.html" title="Chapter 13. Upgrading Berkeley DB 11.2.5.1 applications to Berkeley DB 11.2.5.2" />
<link rel="prev" href="upgrade_11gr2_52_seq_sql.html" title="Sequence Support in the SQL Layer" />
<link rel="next" href="upgrade_11gr2_52_hot_backup.html" title="Hot Backup Changes" />
</head>
<body>
<div xmlns="" class="navheader">
<div class="libver">
<p>Library Version 18.1.40</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">Berkeley DB X/Open Compliant XA Resource Manager </th>
</tr>
<tr>
<td width="20%" align="left"><a accesskey="p" href="upgrade_11gr2_52_seq_sql.html">Prev</a> </td>
<th width="60%" align="center">Chapter 13. Upgrading Berkeley DB 11.2.5.1 applications to Berkeley DB 11.2.5.2 </th>
<td width="20%" align="right"> <a accesskey="n" href="upgrade_11gr2_52_hot_backup.html">Next</a></td>
</tr>
</table>
<hr />
</div>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h2 class="title" style="clear: both"><a id="upgrade_11gr2_52_xa"></a>Berkeley DB X/Open Compliant XA Resource Manager </h2>
</div>
</div>
</div>
<div class="toc">
<dl>
<dt>
<span class="sect2">
<a href="upgrade_11gr2_52_xa.html#idm140649572130176">Constraints</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="upgrade_11gr2_52_xa.html#idm140649572122448">New Flag</a>
</span>
</dt>
<dt>
<span class="sect2">
<a href="upgrade_11gr2_52_xa.html#idm140649572142960">Modified Function</a>
</span>
</dt>
</dl>
</div>
<p>
The Berkeley DB X/open compliant XA resource manager has
been restored. (It was removed from the product after the 4.7
release.) The new implementation includes support for
multi-threaded servers. Consult the documentation of your
chosen transaction manager to learn how to implement a
multi-threaded server.
</p>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649572130176"></a>Constraints</h3>
</div>
</div>
</div>
<p>
Applictions that use a BDB XA resource manager must now
take into account the following constraints.
</p>
<div class="itemizedlist">
<ul type="disc">
<li>
No in-memory logging.
</li>
<li>
No application-level child transactions.
</li>
<li>
All database-level operations (open, close,
create and the like) must be performed outside of a
global transactions (i.e., they can be performed in
local BDB transactions, but not while a distributed XA
transaction is active).
</li>
<li>
Environment configuration must be done using a
DB_CONFIG file.
</li>
<li>
Cursors must be closed before a service
invocation returns.
</li>
</ul>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649572122448"></a>New Flag</h3>
</div>
</div>
</div>
<div class="itemizedlist">
<ul type="disc">
<li><code class="literal">DB_XA_CREATE</code> - This flag is passed
to <a href="../api_reference/C/dbcreate.html" class="olink">db_create()</a> to create a <code class="literal">DB</code> handle
that supports XA transactions.
</li>
</ul>
</div>
</div>
<div class="sect2" lang="en" xml:lang="en">
<div class="titlepage">
<div>
<div>
<h3 class="title"><a id="idm140649572142960"></a>Modified Function</h3>
</div>
</div>
</div>
<div class="itemizedlist">
<ul type="disc">
<li><a href="../api_reference/C/dbstat.html" class="olink">DB->stat()</a> now returns the field
<code class="literal">DB_TXN_STAT->DB_TXN_ACTIVE->xa_status</code>,
which contains information on the XA transactions.
</li>
</ul>
</div>
</div>
</div>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left"><a accesskey="p" href="upgrade_11gr2_52_seq_sql.html">Prev</a> </td>
<td width="20%" align="center">
<a accesskey="u" href="upgrade_52_toc.html">Up</a>
</td>
<td width="40%" align="right"> <a accesskey="n" href="upgrade_11gr2_52_hot_backup.html">Next</a></td>
</tr>
<tr>
<td width="40%" align="left" valign="top">Sequence Support in the
SQL Layer </td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top"> Hot Backup Changes </td>
</tr>
</table>
</div>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists