Someone else asked about this a few weeks ago. The support of HTTP_METHOD_PARAMS was removed in the migration to httpclient 4.x and there is no current replacement for disabling retries.
Anyways, adding the httpclient 4.x method disableAutomaticRetries() before build() at the end of the axis2 class HTTPSenderImpl should make it do zero retries. I suppose retries should be on by default. So zero retries would be optional. Somehow retries has never been a problem on my internal services. Here's the git repo. You could speed the development of this task up by checking out the code, creating a Jira issue and submitting a patch. Otherwise I'll see what I can do myself for the next release. There are doc improvements for several httpclient 4.x areas planned for the next release. git clone https://github.com/apache/axis-axis2-java-core.git On Mon, Nov 8, 2021 at 3:15 AM Jipa, Alexandru-Stefan <alexandrustefan.j...@finastra.com.invalid> wrote: > Hi, > > > > We are trying to upgrade from axis2 1.7.9 to axis2 1.8.0 and I noticed > that commons-httpclient-3.1 was removed from the latest axis2 version. > > We managed to find some import/methods which correspond the old method > used from commons-httpclient-3.1, but for some methods we cant > > find the new appropriate method to call. > > > > Can you tell us what import/method correspond to: > > - import org.apache.http.client.DefaultHttpMethodRetryHandler and > DefaultHttpMethodRetryHandler method > - import org.apache.http.client.params.HttpMethodParams and > HttpMethodParams.RETRY_HANDLER ? > > > > Or at least could you provide some documentation from apache which include > the above? > > > > Thanks, > > > > Stefan Jipa > > > "FINASTRA" is the trade name of the FINASTRA group of companies. This > email and any attachments have been scanned for known viruses using > multiple scanners. This email message is intended for the named recipient > only. It may be privileged and/or confidential. If you are not the named > recipient of this email please notify us immediately and do not copy it or > use it for any purpose, nor disclose its contents to any other person. This > email does not constitute the commencement of legal relations between you > and FINASTRA. Please refer to the executed contract between you and the > relevant member of the FINASTRA group for the identity of the contracting > party with which you are dealing. >