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

UseContextObject (obsolete) – PB Docs 2018 – PowerBuilder Library

UseContextObject (obsolete) – PB Docs 2018

UseContextObject (obsolete)

Description

Specifies that PowerBuilder controls a transaction using the
transaction service context object TransactionServer. This parameter
applies only when a PowerBuilder custom class user object is deployed as
an EAServer or COM+ component.

Obsolete parameter

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

Applies to

JDB JDBC

ODBC

O90 Oracle9i

Syntax

Default value

UseContextObject=No

Usage

PowerBuilder provides a transaction service context object called
TransactionServer that gives you access to the transaction state
primitives that influence whether EAServer or COM+ commits or aborts the
current transaction. If you use the TransactionServer context object by
setting the UseConnectObject parameter to Yes, COMMIT and ROLLBACK
statements called on the Transaction object result in a runtime
error.

By default, the TransactionServer context object is not used.
Instead, you can use COMMIT and ROLLBACK statements to manage
transactions. In this case, COMMIT is interpreted as a SetComplete
function and ROLLBACK is interpreted as a SetAbort function. This
approach is recommended only when you want to migrate PowerBuilder 6.x
or prior objects to EAServer or COM+ without modifying the code.

Setting UseContextObject to Yes is incompatible with the use of
the SetTrans function. The SetTrans function is used when you want the
DataWindow engine to manage database connections, transaction state
primitives, and related EAServer component deactivation.

Examples

To use the TransactionServer context object:

  • Database profile

    Select the Use Transaction Context Object check box on the
    EAServer or EAServer/COM+ page in the Database Profile Setup dialog
    box.

  • Application

    Type the following in code:

See also

CacheName (obsolete)

GetConnectionOption
(obsolete)

ReleaseConnectionOption
(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