Setting HTTP timeouts for external services
Composite services often call out to external HTTP web services. If these external services are not available, or are slow to respond, then it can impact the application performance. By tuning the timeout to a lower or higher value, performance can be improved.
Getting ready
You will need to be familiar with SOA application development principals for this recipe.
How to do it...
These steps will set the timeout for an external HTTP service:
Open the
composite.xml
file in JDeveloper.Select the source view at the bottom of the main pane.
Locate the
<reference>
section for the external service that you want to set the timeout for.Inside the
<binding>
tags, add the propertyoracle.webservices.httpReadTimeout
of typexs:string
with a value high enough to allow the service to respond, such as60000
(60 seconds).Add the property
oracle.webservices.httpConnTimeout
with a typexs:string
, and a low value, such as5000
(5 seconds).Save the composite...