Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

CommitTransaction (obsolete) – PB Docs 2019 – PowerBuilder Library

CommitTransaction (obsolete) – PB Docs 2019

CommitTransaction (obsolete)

Description

Declares that the EAServer transaction associated with the calling
thread should be committed.

Obsolete function

CommitTransaction is obsolete, because EAServer is no longer
supported since PowerBuilder 2017.

Applies to

CORBACurrent objects

Syntax

Argument

Description

CORBACurrent

Reference to the CORBACurrent service instance

breportheuristics

A boolean specifying whether heuristic decisions should be
reported for the transaction associated with the calling
thread

Return value

Integer.

Returns 0 if it succeeds and one of the following negative values if
an error occurs:

-1 — Failed for unknown reason

-2 — No transaction is associated with the calling thread

-3 — The calling thread does not have permission to commit the
transaction

-4 — The HeuristicRollback exception was raised

-5 — The HeuristicMixed exception was raised

-6 — The HeuristicHazard exception was raised

Usage

The CommitTransaction function completes the transaction associated
with the calling thread. Use the BeginTransaction function to begin a
transaction and associate it with the calling thread. The transaction is
not completed if any other participants in the transaction vote to roll
back the transaction.

CommitTransaction can be called by a client or a component that is
marked as OTS style. EAServer must be using the two-phase commit
transaction coordinator (OTS/XA).

Examples

In this example, the client calls the dopayroll method on the
CmpnyAcct EAServer component, which processes a company payroll. The
method returns 1 if the company has sufficient funds to meet the payroll,
and the client then commits the transaction:

See also

BeginTransaction
(obsolete)

GetContextService

GetStatus (obsolete)

GetTransactionName
(obsolete)

Init (obsolete)

ResumeTransaction
(obsolete)

RollbackOnly
(obsolete)

RollbackTransaction
(obsolete)

SetTimeout (obsolete)

SuspendTransaction
(obsolete)


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x