Patent ID: 9311170
Filing Date: 2016-04-12
CPC Classification: G06F

Claim Text:
1. A computer program product for resetting a first application or first application instance, the computer program product comprising: a computer-readable hardware storage device and a program tool stored on the storage device, the program tool comprising: program instructions, responsive to a request to reset the first application or first application instance, to identify for deletion a queue object used or managed by the first application or first application instance; program instructions, responsive to the request to reset the first application or first application instance, to identify a channel used by another, remote application or remote application instance to lock and access the queue object, and write into a script program a command to the first application or first application instance to stop the channel, wherein a lock held by the remote application or remote application instance on the queue object will automatically be released in response to execution of the command to stop the channel; and program instructions, responsive to the request to reset the first application or first application instance, to write into the script program another command, for execution after the command to stop the channel, to the first application or first application instance to delete work items on the queue object; program instructions, responsive to the request to reset the first application or first application instance, to make an identification of a local work queue for deletion; program instructions, responsive to the identification of the local work queue for deletion, to determine if the local work queue is empty of work items; program instructions, responsive to a determination that the local work queue is not empty of work items, to write into the script program a first delete command to delete all of the work items in the local work queue; program instructions to, after the command to delete all of the work items in the local work queue has been written into the script program, determine if the local work queue is locked; program instructions to, responsive to a determination that the local work queue is locked, generate a warning to an operator to clear connections to the local work queue to an extent that the connections to the local work queue are not cleared by lines of the script program which stop all channels to the first application or first application instance, wherein the warning is configured to be displayed prior to execution of the script program; program instructions to, after the warning has been generated, write into the script program a second delete command to delete the local work queue, wherein the second delete command is commented out to disable the second delete command from being performed if the script program is executed while the local work queue is locked; program instructions, responsive to verification that the local work queue is unlocked, to uncomment and re-enable the second delete command in the script program; and program instructions to, before the second delete command has been uncommented and re-enabled in the script program and before execution of the script program, display the warning to the operator.