Commit – PB Docs 126

EJBTransaction:

Commit method

Description

Declares that the calling thread transaction should be committed.

Syntax

Argument

Description

ejbtrans

The name of an EJBTransaction object

Return Values

None

Examples

In this example, the client calls the dopayroll method
on the CmpnyAcct EJB component, which processes a company payroll.
If the company has sufficient funds to meet the payroll, the client
commits the transaction. Otherwise, an exception is thrown and the
client rolls back the transaction:

Usage

The Commit method completes the transaction
associated with the calling thread. The transaction is not completed
if any other participants in the transaction vote 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
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x