You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by Dhanuja Natarajan <dh...@hcl.com> on 2010/09/17 08:49:17 UTC

Axis 2: Keepalive support with HTTP 1.1

Hi,

We are using Axis 2/C version 1.6.
We are developing a client which will connect to the service using HTTP 1.1 protocol.
We want to connect to the service once and make all the requests with the same connection.
We need to verify whether the connection is alive.
Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
If so how can I implement this?

Thank you,
Dhaunja

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

RE: Axis 2: Keepalive support with HTTP 1.1

Posted by Dhanuja Natarajan <dh...@hcl.com>.
Hi Damitha,

Thanks for your help.
I got the 1.7.0-RC2 version. 
I am using HTTP 1.1. 
Can I send multiple request through axis2_svc_client_send_receive method with the same connection?.
I need to check whether the connection is still alive before making each request.
How can I check this?
Will the svc_client hold the connection object?
I want to know when the connection is established?

Thank You,
Dhanuja

-----Original Message-----
From: Damitha Kumarage [mailto:damitha@wso2.com] 
Sent: Friday, September 17, 2010 5:35 PM
To: Apache AXIS C Developers List
Subject: Re: Axis 2: Keepalive support with HTTP 1.1

Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


RE: Axis 2: Keepalive support with HTTP 1.1

Posted by Dhanuja Natarajan <dh...@hcl.com>.
Hi Damitha,

Thanks for your help.
I got the 1.7.0-RC2 version. 
I am using HTTP 1.1. 
Can I send multiple request through axis2_svc_client_send_receive method with the same connection?.
I need to check whether the connection is still alive before making each request.
How can I check this?
Will the svc_client hold the connection object?
I want to know when the connection is established?

Thank You,
Dhanuja

-----Original Message-----
From: Damitha Kumarage [mailto:damitha@wso2.com] 
Sent: Friday, September 17, 2010 5:35 PM
To: Apache AXIS C Developers List
Subject: Re: Axis 2: Keepalive support with HTTP 1.1

Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


RE: Axis 2: Keepalive support with HTTP 1.1

Posted by Dhanuja Natarajan <dh...@hcl.com>.
Hi Damitha,

Thanks for your help.
I got the 1.7.0-RC2 version.
When is the planned release of Axis2C 1.7 version? 

I am using HTTP 1.1. 
Can I send multiple request through axis2_svc_client_send_receive method with the same connection?.
I need to check whether the connection is still alive before making each request.
How can I check this?

Will the svc_client hold the connection object?
I want to know when the connection is established

Thank You,
Dhanuja

-----Original Message-----
From: Damitha Kumarage [mailto:damitha@wso2.com] 
Sent: Friday, September 17, 2010 5:35 PM
To: Apache AXIS C Developers List
Subject: Re: Axis 2: Keepalive support with HTTP 1.1

Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


RE: Axis 2: Keepalive support with HTTP 1.1

Posted by Dhanuja Natarajan <dh...@hcl.com>.
Hi Damitha,

Thanks for your help.
I got the 1.7.0-RC2 version.
When is the planned release of Axis2C 1.7 version? 

I am using HTTP 1.1. 
Can I send multiple request through axis2_svc_client_send_receive method with the same connection?.
I need to check whether the connection is still alive before making each request.
How can I check this?

Will the svc_client hold the connection object?
I want to know when the connection is established

Thank You,
Dhanuja

-----Original Message-----
From: Damitha Kumarage [mailto:damitha@wso2.com] 
Sent: Friday, September 17, 2010 5:35 PM
To: Apache AXIS C Developers List
Subject: Re: Axis 2: Keepalive support with HTTP 1.1

Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Re: Axis 2: Keepalive support with HTTP 1.1

Posted by Damitha Kumarage <da...@wso2.com>.
Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Re: Axis 2: Keepalive support with HTTP 1.1

Posted by Damitha Kumarage <da...@wso2.com>.
Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. But that support is available in current version of svn. You can try 
rc2 [1]

Damitha

[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Re: Axis 2: Keepalive support with HTTP 1.1

Posted by Damitha Kumarage <da...@wso2.com>.
Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. It is available in RC2 [1]. For http 1.1 it is by default. For 1.0 
you need to edit keep alive to true.
Damitha
[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org


Re: Axis 2: Keepalive support with HTTP 1.1

Posted by Damitha Kumarage <da...@wso2.com>.
Dhanuja Natarajan wrote:
>
> Hi,
>
>  
>
> We are using Axis 2/C version 1.6.
>
> We are developing a client which will connect to the service using 
> HTTP 1.1 protocol.
>
> We want to connect to the service once and make all the requests with 
> the same connection.
>
> We need to verify whether the connection is alive.
>
> Is this keep-alive functionality is supported in Axis 2/C 1.6 version?
>
> If so how can I implement this?
>
No. But that support is available in current version of svn. You can try 
rc2 [1]

Damitha

[1] http://people.apache.org/~shankar/axis2c/1.7.0-RC2/
>
>  
>
> Thank you,
>
> Dhaunja
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
> received this email in error please delete it and notify the sender immediately. Before opening any mail and 
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>


-- 
__________________________________________________________________

Damitha Kumarage
Technical Lead; WSO2 Inc.
"Oxygenating the Web Service Platform; " http://www.wso2.com/

blog: " http://damithakumarage.wordpress.com/
__________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org