Refresh a specific agent in an ABL application

When to use:

The refresh agent query terminates all sessions of a specified multi-session agent within a ABL application, thereby refreshing the agent so that changes to the application can be picked-up by the agent. Supply the agent ID to refresh a specific agent.

To obtain the agent IDs of all agents running in your ABL application, you should first run a Get agents query.

For more information, see Refresh agents in an ABL application in Manage Progress Application Server (PAS) for OpenEdge.

Query:
# Tokens: AGENT_ID
# Refresh a specific agent in an ABL application
{"O":"PASOE:type=OEManager,name=AgentManager","M":["refreshAgent","AGENT_ID"]}
Note: For more information about using tokens, see OEJMX utility in Manage Progress Application Server (PAS) for OpenEdge.

Result:

Returns messaging about the actions performed on the specified agent:

{
  "refreshAgent": {
    "agent": [
      {
        "agentId": "LdS8phtPR0GIrhRrrSL3Xg",
        "pid": "7672",
        "sessions": [
          {
            "sessionId": 4,
            "terminateResult": "success"
          },
          {
            "sessionId": 7,
            "terminateResult": "success"
          }
        ]
      }
    ]
  }
}