GetConnectionOption – PB Docs 126

GetConnectionOption database parameter

Description

Specifies how EAServer should behave if all connections in
a cache are being used. This parameter applies only when
a PowerBuilder custom class user object is deployed as an EAServer
component.

Controls

  • JDB JDBC

  • ODBC

  • O90 Oracle9i

  • O10 Oracle 10g

  • ORA Oracle 11g

  • SYJ SAP Adaptive Server Enterprise

Syntax

Parameter

Description

value

Specifies how EAServer should behave
if all connections in a cache are being used. Values are:

  • JAG_CM_FORCE

    (Default) Allocates and opens a new connection. The new connection
    is not cached and is deallocated when the connection is explicitly
    or implicitly closed by the component.

  • JAG_CM_NOWAIT

    Fails with an error if no connection can be made.

  • JAG_CM_WAIT

    Does not return until a connection is available.

Default

GetConnectionOption=’JAG_CM_FORCE’

Usage

This parameter cannot be set dynamically. The value set when
the connection is made remains in effect until it is disconnected.

note.png Using the SYJ interface

Sybase EAServer uses a slightly different version of the CT-Lib
software. Therefore, at runtime, you need to
use the SYJ database interface rather than ASE or SYC to connect
to an Adaptive Server Enterprise database. The SYJ Database Profile
Setup dialog box provides a convenient way to set the appropriate
connection parameters and then copy the syntax from the Preview page
into the script for your Transaction object.

You cannot use the SYJ interface, however, to connect to the
database in the PowerBuilder development environment. Therefore, during
the development phase
(before the component has been
deployed to EAServer), you must use ASE or SYC to connect to the
database.

For information on how to use PowerBuilder to build EAServer
components, see Application Techniques.

Examples

On the EAServer page in the Database Profile Setup
dialog box, select JAG_CM_NOWAIT from the Get
Connection Option drop-down list. The PowerScript syntax for the
GetConnectionOption parameter displays on the Preview page:

Copy the syntax from the Preview page into your script.

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