You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Traichel, Raimund" <ra...@siemens.com> on 2007/06/01 13:42:18 UTC
Axis2/Java: Share HTTP connection between multiple client stubs ?
Hello,
I have a question regarding the connection handing using a Axis2 / Java
Client.
Is it possible to share one HTTP connection between
multiple client stubs using Axis2 / Java Client ?
Example:
I have two services deployed (HelloWorld and HelloMoon) on my server.
>From the WSDL
files "HelloWorld.wsdl" and "HelloMoon.wsdl" I have generated 2 Java
client stubs (HelloWorld_ServiceStub
and HelloMoon_ServicStub). Currently each client stub creates it's own
HTTP connection to the server.
Is it possible to establish only one connection to the server, which can
be used to send requests to
the HelloWorld AND the HelloMoon service ?
This means the two different client stubs should share the same HTTP
connection / HTTP client.
I am already using the parameter "REUSE_HTTP_CLIENT", but this has only
the effect, that the same
connection (HTTP client) is used for all requests within the same client
stub.
I am currently using Axis 2 V1.2 and Java 1.5.0_11.
Thanks,
Raimund
Raimund Traichel
Siemens Enterprise Communications GmbH & Co. KG
SEN ESY HA D QA 3
Hofmannstr. 51
81379 Munich, Germany
phone: +49 (0)89 722 31686
email : mailto:raimund.traichel@siemens.com
<ma...@siemens.com>
Communication for the open minded
www.siemens.de/open <http://www.siemens.de/open>
www.siemens.com/open <http://www.siemens.com/open>
Siemens Enterprise Communications GmbH & Co. KG
Managing Directors: Reinhard Benditte, Gerhard Otterbach,
Thomas Zimmermann
Registered offices: Munich
Commercial registry: Munich, HRA 88546
WEEE-Reg.-No. DE 27980375
General Partner:
Siemens Enterprise Communications Management GmbH
Registered offices: Munich
Commercial registry: Munich, HRB 163415
Re: Axis2/Java: Share HTTP connection between multiple client stubs ?
Posted by Paul Fremantle <pz...@gmail.com>.
Raimund
I know that Asankha has been working on a non-blocking HTTP client for Axis2
that re-uses connections. As I understand it this code is only in the
Synapse release so far (http://ws.apache.org/synapse). But I know there is a
plan to get it into the core of Axis2. It is just an Axis2 transport so the
code will work under Axis2.
Asankha - am I right?
Paul
On 6/1/07, Traichel, Raimund <ra...@siemens.com> wrote:
>
> Hello,
>
> I have a question regarding the connection handing using a Axis2 / Java
> Client.
>
> Is it possible to share one HTTP connection between
> multiple client stubs using Axis2 / Java Client ?
>
> Example:
> I have two services deployed (HelloWorld and HelloMoon) on my server.
> From the WSDL
> files "HelloWorld.wsdl" and "HelloMoon.wsdl" I have generated 2 Java
> client stubs (HelloWorld_ServiceStub
> and HelloMoon_ServicStub). Currently each client stub creates it's own
> HTTP connection to the server.
> Is it possible to establish only one connection to the server, which can
> be used to send requests to
> the HelloWorld AND the HelloMoon service ?
> This means the two different client stubs should share the same HTTP
> connection / HTTP client.
> I am already using the parameter "REUSE_HTTP_CLIENT", but this has only
> the effect, that the same
> connection (HTTP client) is used for all requests within the same client
> stub.
>
> I am currently using Axis 2 V1.2 and Java 1.5.0_11.
>
> Thanks,
> Raimund
>
>
> *Raimund Traichel*
> *Siemens Enterprise Communications GmbH & Co. KG*
>
> SEN ESY HA D QA 3
> Hofmannstr. 51
> 81379 Munich, Germany
>
> phone: +49 (0)89 722 31686
> email : mailto:raimund.traichel@siemens.com <ra...@siemens.com>
>
> *Communication for the open minded*
> www.siemens.de/open
> www.siemens.com/open
>
> Siemens Enterprise Communications GmbH & Co. KG
>
> Managing Directors: Reinhard Benditte, Gerhard Otterbach,
> Thomas Zimmermann
>
>
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRA 88546
> WEEE-Reg.-No. DE 27980375
>
> General Partner:
>
> Siemens Enterprise Communications Management GmbH
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRB 163415
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
Re: Axis2/Java: Share HTTP connection between multiple client stubs ?
Posted by Paul Fremantle <pz...@gmail.com>.
Raimund
I know that Asankha has been working on a non-blocking HTTP client for Axis2
that re-uses connections. As I understand it this code is only in the
Synapse release so far (http://ws.apache.org/synapse). But I know there is a
plan to get it into the core of Axis2. It is just an Axis2 transport so the
code will work under Axis2.
Asankha - am I right?
Paul
On 6/1/07, Traichel, Raimund <ra...@siemens.com> wrote:
>
> Hello,
>
> I have a question regarding the connection handing using a Axis2 / Java
> Client.
>
> Is it possible to share one HTTP connection between
> multiple client stubs using Axis2 / Java Client ?
>
> Example:
> I have two services deployed (HelloWorld and HelloMoon) on my server.
> From the WSDL
> files "HelloWorld.wsdl" and "HelloMoon.wsdl" I have generated 2 Java
> client stubs (HelloWorld_ServiceStub
> and HelloMoon_ServicStub). Currently each client stub creates it's own
> HTTP connection to the server.
> Is it possible to establish only one connection to the server, which can
> be used to send requests to
> the HelloWorld AND the HelloMoon service ?
> This means the two different client stubs should share the same HTTP
> connection / HTTP client.
> I am already using the parameter "REUSE_HTTP_CLIENT", but this has only
> the effect, that the same
> connection (HTTP client) is used for all requests within the same client
> stub.
>
> I am currently using Axis 2 V1.2 and Java 1.5.0_11.
>
> Thanks,
> Raimund
>
>
> *Raimund Traichel*
> *Siemens Enterprise Communications GmbH & Co. KG*
>
> SEN ESY HA D QA 3
> Hofmannstr. 51
> 81379 Munich, Germany
>
> phone: +49 (0)89 722 31686
> email : mailto:raimund.traichel@siemens.com <ra...@siemens.com>
>
> *Communication for the open minded*
> www.siemens.de/open
> www.siemens.com/open
>
> Siemens Enterprise Communications GmbH & Co. KG
>
> Managing Directors: Reinhard Benditte, Gerhard Otterbach,
> Thomas Zimmermann
>
>
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRA 88546
> WEEE-Reg.-No. DE 27980375
>
> General Partner:
>
> Siemens Enterprise Communications Management GmbH
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRB 163415
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
Re: Axis2/Java: Share HTTP connection between multiple client stubs ?
Posted by Davanum Srinivas <da...@gmail.com>.
Raimund,
Please see this:
http://wso2.org/library/87
thx,
dims
On 6/1/07, Traichel, Raimund <ra...@siemens.com> wrote:
>
>
> Hello,
>
> I have a question regarding the connection handing using a Axis2 / Java
> Client.
>
> Is it possible to share one HTTP connection between
> multiple client stubs using Axis2 / Java Client ?
>
> Example:
> I have two services deployed (HelloWorld and HelloMoon) on my server.
> From the WSDL
> files "HelloWorld.wsdl" and "HelloMoon.wsdl" I have generated 2 Java
> client stubs (HelloWorld_ServiceStub
> and HelloMoon_ServicStub). Currently each client stub creates it's own
> HTTP connection to the server.
> Is it possible to establish only one connection to the server, which can
> be used to send requests to
> the HelloWorld AND the HelloMoon service ?
> This means the two different client stubs should share the same HTTP
> connection / HTTP client.
> I am already using the parameter "REUSE_HTTP_CLIENT", but this has only
> the effect, that the same
> connection (HTTP client) is used for all requests within the same client
> stub.
>
> I am currently using Axis 2 V1.2 and Java 1.5.0_11.
>
> Thanks,
> Raimund
>
>
> Raimund Traichel
> Siemens Enterprise Communications GmbH & Co. KG
>
> SEN ESY HA D QA 3
> Hofmannstr. 51
> 81379 Munich, Germany
>
> phone: +49 (0)89 722 31686
> email : mailto:raimund.traichel@siemens.com
>
> Communication for the open minded
> www.siemens.de/open
> www.siemens.com/open
>
>
> Siemens Enterprise Communications GmbH & Co. KG
>
> Managing Directors: Reinhard Benditte, Gerhard Otterbach,
> Thomas Zimmermann
>
>
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRA 88546
> WEEE-Reg.-No. DE 27980375
>
> General Partner:
>
> Siemens Enterprise Communications Management GmbH
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRB 163415
>
--
Davanum Srinivas :: http://davanum.wordpress.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2/Java: Share HTTP connection between multiple client stubs ?
Posted by Paul Fremantle <pz...@gmail.com>.
Raimund
I know that Asankha has been working on a non-blocking HTTP client for Axis2
that re-uses connections. As I understand it this code is only in the
Synapse release so far (http://ws.apache.org/synapse). But I know there is a
plan to get it into the core of Axis2. It is just an Axis2 transport so the
code will work under Axis2.
Asankha - am I right?
Paul
On 6/1/07, Traichel, Raimund <ra...@siemens.com> wrote:
>
> Hello,
>
> I have a question regarding the connection handing using a Axis2 / Java
> Client.
>
> Is it possible to share one HTTP connection between
> multiple client stubs using Axis2 / Java Client ?
>
> Example:
> I have two services deployed (HelloWorld and HelloMoon) on my server.
> From the WSDL
> files "HelloWorld.wsdl" and "HelloMoon.wsdl" I have generated 2 Java
> client stubs (HelloWorld_ServiceStub
> and HelloMoon_ServicStub). Currently each client stub creates it's own
> HTTP connection to the server.
> Is it possible to establish only one connection to the server, which can
> be used to send requests to
> the HelloWorld AND the HelloMoon service ?
> This means the two different client stubs should share the same HTTP
> connection / HTTP client.
> I am already using the parameter "REUSE_HTTP_CLIENT", but this has only
> the effect, that the same
> connection (HTTP client) is used for all requests within the same client
> stub.
>
> I am currently using Axis 2 V1.2 and Java 1.5.0_11.
>
> Thanks,
> Raimund
>
>
> *Raimund Traichel*
> *Siemens Enterprise Communications GmbH & Co. KG*
>
> SEN ESY HA D QA 3
> Hofmannstr. 51
> 81379 Munich, Germany
>
> phone: +49 (0)89 722 31686
> email : mailto:raimund.traichel@siemens.com <ra...@siemens.com>
>
> *Communication for the open minded*
> www.siemens.de/open
> www.siemens.com/open
>
> Siemens Enterprise Communications GmbH & Co. KG
>
> Managing Directors: Reinhard Benditte, Gerhard Otterbach,
> Thomas Zimmermann
>
>
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRA 88546
> WEEE-Reg.-No. DE 27980375
>
> General Partner:
>
> Siemens Enterprise Communications Management GmbH
>
> Registered offices: Munich
>
> Commercial registry: Munich, HRB 163415
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
paul@wso2.com
"Oxygenating the Web Service Platform", www.wso2.com