Programming Guide |
Cancels an outstanding service request
service_cancel
[services
]
services
- Specifies which services to cancel:
CALL
callid
- Cancel the specific service request identified by
callid
.ALL [
(callid
...)]- An unqualified
ALL
cancels all outstanding service requests; if followed by a list of service call identifiers (callid
),ALL
cancels the specified service requests. Enclose the list of call identifiers with parentheses.
JetNet, Oracle Tuxedo
Client, Server
The
service_cancel
command cancels the specified service requests. An unqualifiedservice_cancel
cancels the most recent asynchronous request. You can cancel one or more requests with theCALL
andALL
options. For example, this statement cancels the service request identified by the Panther variablecall_id
:service_cancel CALL call_id
This statement cancels all outstanding service requests:
service_cancel ALLYou can cancel both synchronous and asynchronous service calls. Canceling a call does not stop it from running; however, it does stop the reply. If the canceled service is part of a transaction under Oracle Tuxedo, the cancellation should be accompanied by a rollback to ensure the integrity of an XA resource.
service_cancel
sets thetp_return
property to the number of service calls canceled.
service_cancel
can generate the following exceptions:
Note: A call is considered outstanding as soon as its associated
pre_request
event has been raised, and is considered complete as soon as its associatedpost_request
event has been generated. After each request has terminated, apost_request
event is generated. For more information, refer to "Pre_request and Post_request Events" in JetNet/Oracle Tuxedo Guide.
receive, service_call, service_forward, service_return