uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

10.20 Preventing the resending of a request by sun.net.www.http.HttpClient

The JAX-WS engine on the Web Service client machine executes communication by using the HTTP client implementation of JDK. Contrary to RFC 2616, the HTTP client implementation of JDK resends a request only once when an error occurs in the HTTP communication and an appropriate response is not received from the server. You can use the system properties of JDK to prevent the resending of requests.

Organization of this section
(1) Specifying a property value
(2) How to set a property

(1) Specifying a property value

For preventing the resending of a request by the HTTP client implementation of JDK, set sun.net.http.retryPost=false in the system property. This is a standard system property supported by JDK 6 or later. For details on the system properties, see the JDK documentation.

(2) How to set a property

The method for setting a property is the same method as that for setting a system property for establishing a connection according to the SSL protocol. For details on how to set a property, see 10.11(2) How to set a property.