BeginTransaction (obsolete) – PB Docs 2017

BeginTransaction (obsolete)

PowerScript function

Description

Creates an EAServer transaction and associates it with the calling
thread.

Obsolete function

BeginTransaction is obsolete, because EAServer is no longer
supported since PowerBuilder 2017. An obsolete feature is no longer
eligible for technical support and will no longer be enhanced, although
it is still available.

Applies to

CORBACurrent objects

Syntax

Argument

Description

CORBACurrent

Reference to the CORBACurrent service
instance

Return value

Boolean.

Returns true if it succeeds and false if the transaction could not
be created.

Usage

The BeginTransaction function creates a transaction and modifies the
transaction context of the calling thread so that it is associated with
the transaction. This enables the calling thread to obtain information
about the transaction and control commits and rollbacks.
BeginTransaction 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). If the calling thread is already associated with a
transaction, BeginTransaction returns false. Nested transactions are not
supported.

Examples

This example shows the use of BeginTransaction to create a
transaction from a client:

See also

CommitDocking

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