As with local persistent procedures, a remote persistent procedure context remains active within an AppServer session until it is deleted using the
DELETE OBJECT or
DELETE PROCEDURE statement. All remote persistent procedures are also deleted when the client application disconnects from the AppServer where the procedure is active (see
Disconnecting from an AppServer instance ). You can thus delete a remote persistent procedure from an ABL client session by:
Disconnecting the AppServer by using the
DISCONNECT( ) method on the corresponding server handle. This deletes all remote persistent procedures in the AppServer session.
If the delete occurs in the context of another remote procedure request to the AppServer, the deletion is pending until the request completes and returns to the client. When the remote persistent procedure is finally deleted, both its proxy procedure handle on the client and its remote procedure handle in the AppServer agent are deleted together.