Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
I have tried to set default timeouts for shared HttpClient in shared ConfigurationContext but it appears it is not possible to make it work because each call of AxisEngine.send(msgContext) (e.g. from OutInAxisOperation) overrides timeouts of HttpClient from MessageContext (where this timeout might not be even defined causing to use default 30 seconds timeout).
More over it appears it a threading issue because HttpClient could be shared by a number of threads. That's why I don't understand why configuration of HttpClient is changed by each call of AxisEngine.send.
This makes me not to use shared ConfigurationContext with shared HttpClient with MultithreadedHttpConnectionManager. It is required to create ConfigurationContext (and HttpClient, and HttpConnectionManager) for each stub instance.