Try OpenEdge Now
skip to main content
Application Migration and Development Guide
Application Development with PAS for OpenEdge : Programming the Progress Application Server for OpenEdge : Using PAS for OpenEdge event procedures : Connect and Disconnect procedures : Disconnect procedure
 
Disconnect procedure
A Disconnect procedure executes in whatever PAS for OpenEdge session handles a client disconnection request, but before the connection is terminated. You can use the PAS for OE Disconnect procedure to specify logic that you want executed at this time. For example, you might want to use it to disconnect from a client-specific database or from other PAS for OpenEdge instances that were connected on behalf of the client.
You can specify the name of the PAS for OpenEdge Disconnect procedure by setting the sessionDisconnProc property in the PAS for OpenEdge properties file (openedge.properties). This procedure takes no parameters.
For a bound client connection, the Disconnect procedure runs after the PAS for OE instance returns the response to the disconnect request to the client application. For an unbound client connection, the procedure runs just before the PAS for OpenEdge returns this disconnect response, where it is typically used to delete connection-specific context. Any raised conditions that you do not handle in this procedure are ignored by OpenEdge.