ibm-information-center/dist/eclipse/plugins/i5OS.ic.ddp_5.4.0.1/rbal1actstates.htm

77 lines
4.7 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="reference" />
<meta name="DC.Title" content="Activation group connection states" />
<meta name="abstract" content="A different application server can be established by the explicit or implicit execution of a CONNECT statement." />
<meta name="description" content="A different application server can be established by the explicit or implicit execution of a CONNECT statement." />
<meta name="DC.subject" content="connection states, activation group, connected state, unconnected state" />
<meta name="keywords" content="connection states, activation group, connected state, unconnected state" />
<meta name="DC.Relation" scheme="URI" content="rbal1adduwmg.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal1actstates" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Activation group connection states</title>
</head>
<body id="rbal1actstates"><a name="rbal1actstates"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Activation group connection states</h1>
<div><p>A different application server can be established by the explicit
or implicit execution of a CONNECT statement.</p>
<div class="section"><p>The following rules apply: </p>
<ul><li>An activation group cannot have more than one connection to the same application
server at the same time.</li>
<li>When an activation group executes a SET CONNECTION statement, the specified
location name must be an existing connection in the set of connections of
the activation group.</li>
<li>When an activation group executes a CONNECT statement, the specified server
name must not be an existing connection in the set of connections of the activation
group.</li>
</ul>
</div>
<div class="section"><p><strong>If an activation group has a current connection</strong>, the activation
group is in the <em>connected</em> state. </p>
</div>
<div class="section"><p>The CURRENT SERVER special register contains the name of the application
server of the current connection. The activation group can execute SQL statements
that refer to objects managed by that application server.</p>
</div>
<div class="section"><p>An activation group in the unconnected state enters the connected
state when it successfully executes a CONNECT or SET CONNECTION statement.</p>
</div>
<div class="section"><p><strong>If an activation group does not have a current connection</strong>,
the activation group is in the <em>unconnected</em> state. The CURRENT SERVER
special register contents are equal to blanks. The only SQL statements that
can be executed are CONNECT, DISCONNECT, SET CONNECTION, RELEASE, COMMIT,
and ROLLBACK.</p>
</div>
<div class="section"><p>An activation group in the connected state enters the unconnected
state when its current connection is intentionally ended or the execution
of an SQL statement is unsuccessful because of a failure that causes a rollback
operation at the application server and loss of the connection. Connections
are intentionally ended when an activation group successfully executes a commit
operation and the connection is in the released state, or when an application
process successfully executes the DISCONNECT statement.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal1adduwmg.htm" title="The application-directed distributed unit of work facility also provides for the remote preparation and execution of SQL statements in the same fashion as remote unit of work.">Distributed unit of work</a></div>
</div>
</div>
</body>
</html>