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

RollbackOnly – PB Docs 126 – PowerBuilder Library

RollbackOnly – PB Docs 126

RollbackOnly PowerScript function

Description

Modifies an EAServer transaction
associated with a calling thread so that the only possible outcome
is to roll back the transaction.

Controls

CORBACurrent objects

Syntax

Argument

Description

CORBACurrent

Reference to the CORBACurrent service
instance

Return Values

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

Usage

RollbackTransaction is typically called
by the originator of the transaction. Another participant in a client-
or OTS style transaction can call RollbackOnly to
vote that the transaction should be rolled back.

RollbackOnly 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, a participant in a transaction has
determined that it should be rolled back. It creates and initializes
an instance of the CORBACurrent service object and votes to roll
back the transaction:

See Also


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