Hi Davanum Srinivas,

Thank you for the answer. In fact I did already dig that information out from the source code, and have tried it, but reusing the HttpClient does not mean that the *connection* is reused. Try to use ethereal and see. The port number changes for every call. I understood that the http property "Keep-alive" means that the actual socket connection is reused for every http request/response between the same client/server pair.

Med venlig hilsen / Kind regards,
Morten Steffensen

Emercos ApS
http://www.emercos.com



Davanum Srinivas skrev:
http://www.wso2.net/2006/05/reuse_share_http_connections

On 5/26/06, Morten Steffensen <[EMAIL PROTECTED]> wrote:
Hello happy axis users,

How do I prevent axis2 client from making a new connection for every call?

I have built a client app based on the axis2 v1.0. The client is built
like the EchoBlockingClient userguide sample. It seems that every call
is done by a opening a new connection to the server. There doesn't seem
to be any Keep-alive property in the http header. I have searched in the
documentation and in the source code for a hook to switch Keep-alive on,
but did not succeed. So I just added a setRequestHeader into the
SOAPOverHttpSender.java. Now I get the Keep-alive in the http header,
but it still seems that a new connection is opened for each call.

Please, help me with a hint on how to reuse connections.

--
Med venlig hilsen / Kind regards,
Morten Steffensen

Emercos ApS
http://www.emercos.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Med venlig hilsen / Kind regards,
Morten Steffensen

Emercos ApS
http://www.emercos.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to