Activate and Deactivate procedures encapsulate logic that executes automatically for client requests that run over session-free or unbound session-managed connections.When a client application sends remote procedure requests over these types of connections, each request might execute in a different PAS for OpenEdge session instance. To maintain application continuity between sessions running over the same client connection, you might need to establish some application-specific resources or context before, and discard them after each request. The Activate and Deactivate procedures help to manage these resources and context more easily.
Note that if your application uses a mixed application model, you might need to manage the resources and context for each request differently, depending on the application model of the current client request. You can verify the application model of the current client request by testing the value of the SERVER-OPERATING-MODE attribute on the SESSION handle and execute the appropriate context management code accordingly.