Connection object (obsolete)
Obsolete object
Connection object 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.
The Connection object specifies the parameters that PowerBuilder
uses to connect to EAServer. You can customize the Connection object by
defining a class user object inherited from the built-in Connection
object. The user object has three events: Constructor, Destructor, and
Error.
For more information about creating a custom Connection object, see
the section called “Working with User Objects” in Users Guide.
For information about connecting to J2EE servers using the
EJBConnection object, see Connecting
to the server and EJBConnection.
Properties
|
Connection property |
Datatype |
Description |
||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
Application |
String |
(Optional) Specifies the default package to be used |
||||||||
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
||||||||
|
ConnectString (obsolete) |
String |
Obsolete property. Used for distributed |
||||||||
|
Driver |
String |
The communications driver used for the |
||||||||
|
ErrCode |
Long |
Code indicating the success or failure of the most 0 — 50 — Distributed service 52 — Distributed communications 53 — Requested server not 54 — Server not accepting 55 — Request terminated 56 — Response to request 57 — Not connected 58 — 62 — Server 75 — Server forced client to 80 — Server timed out client 87 — Connection to server has been 92 — Required property is missing or |
||||||||
|
ErrText |
String |
Text indicating the success or failure of the most |
||||||||
|
Handle |
Objhandle |
Internal use only. |
||||||||
|
Location |
String |
Specifies the host name and port number for the
To |
||||||||
|
Options |
String |
Specifies one or more communications options. If EAServer clients can use the See |
||||||||
|
Password |
String |
The password that will be used to connect to the |
||||||||
|
Trace (obsolete) |
String |
Obsolete property. Used for distributed |
||||||||
|
UserID |
String |
The name or ID of the user who will connect to the |
Options
|
Option |
Description |
||
|---|---|---|---|
|
ORBHttp |
Specifies whether the ORB should use HTTP tunneling |
||
|
ORBIdleConnectionTimeout |
Specifies the time, in seconds, that a connection |
||
|
ORBLogIIOP |
Specifies whether the ORB should log IIOP protocol |
||
|
ORBLogFile |
Sets the path and name of the file to which to log |
||
|
ORBCodeSet |
Sets the code set that the client uses. This |
||
|
ORBRetryCount |
Specifies the number of times to retry when the |
||
|
ORBRetryDelay |
Specifies the delay, in milliseconds, between retry |
||
|
ORBProxyHost |
Specifies the machine name or the IP address of an |
||
|
ORBProxyPort |
Specifies the port number of the SSL |
||
|
ORBWebProxyHost |
Specifies the host name or IP address of an HTTP |
||
|
ORBWebProxyPort |
When generic Web tunneling is enabled by setting |
||
|
ORBHttpExtraHeader |
An optional setting to specify what extra There is no need to
where You can set |
||
|
ORBsocketReuseLimit |
Specifies the number of times a network connection |
||
|
ORBcertificateLabel |
Specifies the client certificate to use if the Required for mutual |
||
|
ORBqop |
Specifies the name of a security characteristic to Required for SSL. |
||
|
ORBcacheSize |
Specifies the size of the SSL session ID cache. |
||
|
ORBpin |
Specifies the PKCS #11 token PIN. This is required Required for |
||
|
ORBuserdata |
Optional string that can be used to provide |
||
|
ORBentrustIniFile |
Specifies the path name for the Entrust INI file Required when the ORBuseEntrustid property |
||
|
ORBentrustUserProfile |
Specifies the full path to the file containing an |
||
|
ORBuseEntrustID |
Specifies whether to use the Entrust ID or the |
||
|
ORBentrustPassword |
Specifies the password for logging in to Entrust |
Events
|
Connection event |
Occurs |
|---|---|
|
When the Connection object is |
|
|
When the Connection object is |
|
|
When a client request cannot be |
Functions
|
Connection function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the class of the object |
|
|
Long |
Connects a client application to a server |
|
|
Long |
Creates an instance of a remote object on a |
|
|
Long |
Disconnects a client application from a server |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
GetServerInfo (obsolete) |
Long |
Obsolete |
|
Long |
Allows a PowerBuilder client to create an instance Obsolete function Lookup is |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
RemoteStopConnection (obsolete) |
Long |
Obsolete function |
|
RemoteStopListening (obsolete) |
Long |
Obsolete function |
|
Integer |
Triggers a specified event in the object and |
|
|
Object |
Returns the type of the object |