Handling SOAP/JMS Message Timeouts on a Request-Response Operation
If you are using a service task to invoke a request-response operation over SOAP/JMS, you can configure JMS message timeouts to prevent the service task from hanging if the called web service does not respond in a timely fashion. These timeouts can also prevent duplicate messages from being submitted if the receiver was not able to receive and process the initial message(s) - for example, when communication to a mainframe system is intermittent.
You can configure SOAP/JMS message timeout behavior by using the following properties of the service task's endpoint:
- Request-Response Timeout (default 6 seconds): defines the time period after which a web service call will time out if a response message has not been received from the web service. If this occurs, a Timeout exception error is thrown by the web service task.
- Request Expiration Timeout (default 3 seconds): defines the time period within which the called web service must pull the request message from the JMS message queue. If this timeout expires, the JMS server will be instructed to purge the request message from the JMS message queue. (This ensures that if the web service call is retried, the JMS message queue does not contain duplicate copies of the same request message for the web service to consume.) The web service call itself does not timeout when this timer expires, so no Timeout exception error is thrown.
Procedure
Copyright © Cloud Software Group, Inc. All rights reserved.