Progress
Language Reference
SERVER-CONNECTION-ID Attribute
The connection ID of the connection between the AppServer and the client application whose request is running in the current Application Server session.
Data Type: CHARACTERAccess: ReadableApplies To: SESSION System HandleThis attribute is ignored unless the REMOTE attribute is TRUE.
This value is assigned by the Application Broker when an AppServer accepts a connection request from a client application. The Application Broker and all Application Servers use the connection ID as an identifier when they log any information associated with the connection. This same connection ID is available to the Application Server using the SERVER-CONNECTION-ID attribute and to the connected 4GL client using the CLIENT-CONNECTION-ID attribute on the server handle connected to this AppServer.
The value of the connection ID is guaranteed to be globally unique for all time within a single computer network. Connection IDs can be compared to each other strictly for equality, but other types of comparisons are irrelevant.
Progress ensures that the SERVER-CONNECTION-ID attribute for each Application Server process is set to the connection ID for the connection that is assigned to the Application Server. Each time a new connection is assigned to an Application Server process a new value is assigned to the SERVER-CONNECTION-ID attribute.
This attribute is available to any Connect procedure or Disconnect procedure that you have configured for the AppServer. It maintains the same value for these and all other AppServer procedures executed on behalf of the same connection.
If the AppServer operating mode is stateless, the Application Broker resets the SERVER-CONNECTION-ID attribute for each Application Server process to the ID of the connection each time it executes a request. The connection ID for a bound stateless Application Server process remains the same until the server process becomes unbound and receives a request from a new unbound connection.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |