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 Mahesh Seshan <ma...@gmail.com> on 2006/01/05 01:32:06 UTC

Client drops connection

Hello,

I have an Axis 1.3 (java) based Service that is consumed by an Axis
1.3 (java) client. I notice that (netsta -a) after the client invokes
a method, it drops the TCP connection to the server. I say this
because, the socket on the server side changes to TIME_WAIT state
instead of ESTABLISHED state. I am positive that on the client, I
don't lose reference to the ServiceLocator or the Stub. Can you please
explain me this behavior and how i can keep the connection open for
the entire session.

-Mahesh

Re: Client drops connection

Posted by Mahesh Seshan <ma...@gmail.com>.
Thank you very very much again. It worked very easily. I had to

-get commons httpclient (3.0)
-get commons codec (1.3)
-configure the client-config.wsdd

and got it working.

-Mahesh

On 1/5/06, iksrazal <ik...@gmail.com> wrote:
> Its a FAQ:
>
> http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP
>
> HTH,
> iksrazal
> http://www.braziloutsource.com/
>
> Em Quinta 05 Janeiro 2006 16:01, o Mahesh Seshan escreveu:
> > Thank you very much for the pointer. Can I get a little more insight into
> >
> > a. making axis client use the CommonsHTTPSender instead of HTTPSender
> > as the transport implementation.
> >
> > b. setting properties for pooled connections/socket.
> >
> > Once again, thank you very much for the help.
> >
> > -Mahesh
> >
> > On 1/5/06, Jarmo Doc <ja...@hotmail.com> wrote:
> > > Last time I investigated this (with Axis 1.2), I came to the conclusion
> > > that you need to use the org.apache.axis.transport.http.CommonsHTTPSender
> > > class in conjunction with the Jakarta Commons HttpClient package.
> > >
> > > See http://issues.apache.org/bugzilla/show_bug.cgi?id=16522
> > >
> > > >From: Mahesh Seshan <ma...@gmail.com>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Client drops connection
> > > >Date: Wed, 4 Jan 2006 19:32:06 -0500
> > > >
> > > >Hello,
> > > >
> > > >I have an Axis 1.3 (java) based Service that is consumed by an Axis
> > > >1.3 (java) client. I notice that (netsta -a) after the client invokes
> > > >a method, it drops the TCP connection to the server. I say this
> > > >because, the socket on the server side changes to TIME_WAIT state
> > > >instead of ESTABLISHED state. I am positive that on the client, I
> > > >don't lose reference to the ServiceLocator or the Stub. Can you please
> > > >explain me this behavior and how i can keep the connection open for
> > > >the entire session.
> > > >
> > > >-Mahesh
> > >
> > > _________________________________________________________________
> > > FREE pop-up blocking with the new MSN Toolbar – get it now!
> > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
> --
> http://www.braziloutsource.com/
>

Re: Client drops connection

Posted by Mahesh Seshan <ma...@gmail.com>.
How do I close all the connections in the pool (i.e Connection
Manager) gracefully. I did not see any hook in the API to do that ?

-Mahesh

On 1/5/06, iksrazal <ik...@gmail.com> wrote:
> Its a FAQ:
>
> http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP
>
> HTH,
> iksrazal
> http://www.braziloutsource.com/
>
> Em Quinta 05 Janeiro 2006 16:01, o Mahesh Seshan escreveu:
> > Thank you very much for the pointer. Can I get a little more insight into
> >
> > a. making axis client use the CommonsHTTPSender instead of HTTPSender
> > as the transport implementation.
> >
> > b. setting properties for pooled connections/socket.
> >
> > Once again, thank you very much for the help.
> >
> > -Mahesh
> >
> > On 1/5/06, Jarmo Doc <ja...@hotmail.com> wrote:
> > > Last time I investigated this (with Axis 1.2), I came to the conclusion
> > > that you need to use the org.apache.axis.transport.http.CommonsHTTPSender
> > > class in conjunction with the Jakarta Commons HttpClient package.
> > >
> > > See http://issues.apache.org/bugzilla/show_bug.cgi?id=16522
> > >
> > > >From: Mahesh Seshan <ma...@gmail.com>
> > > >Reply-To: axis-user@ws.apache.org
> > > >To: axis-user@ws.apache.org
> > > >Subject: Client drops connection
> > > >Date: Wed, 4 Jan 2006 19:32:06 -0500
> > > >
> > > >Hello,
> > > >
> > > >I have an Axis 1.3 (java) based Service that is consumed by an Axis
> > > >1.3 (java) client. I notice that (netsta -a) after the client invokes
> > > >a method, it drops the TCP connection to the server. I say this
> > > >because, the socket on the server side changes to TIME_WAIT state
> > > >instead of ESTABLISHED state. I am positive that on the client, I
> > > >don't lose reference to the ServiceLocator or the Stub. Can you please
> > > >explain me this behavior and how i can keep the connection open for
> > > >the entire session.
> > > >
> > > >-Mahesh
> > >
> > > _________________________________________________________________
> > > FREE pop-up blocking with the new MSN Toolbar – get it now!
> > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
> --
> http://www.braziloutsource.com/
>

Re: Client drops connection

Posted by iksrazal <ik...@gmail.com>.
Its a FAQ:

http://wiki.apache.org/ws/FrontPage/Axis/AxisCommonsHTTP

HTH,
iksrazal
http://www.braziloutsource.com/

Em Quinta 05 Janeiro 2006 16:01, o Mahesh Seshan escreveu:
> Thank you very much for the pointer. Can I get a little more insight into
>
> a. making axis client use the CommonsHTTPSender instead of HTTPSender
> as the transport implementation.
>
> b. setting properties for pooled connections/socket.
>
> Once again, thank you very much for the help.
>
> -Mahesh
>
> On 1/5/06, Jarmo Doc <ja...@hotmail.com> wrote:
> > Last time I investigated this (with Axis 1.2), I came to the conclusion
> > that you need to use the org.apache.axis.transport.http.CommonsHTTPSender
> > class in conjunction with the Jakarta Commons HttpClient package.
> >
> > See http://issues.apache.org/bugzilla/show_bug.cgi?id=16522
> >
> > >From: Mahesh Seshan <ma...@gmail.com>
> > >Reply-To: axis-user@ws.apache.org
> > >To: axis-user@ws.apache.org
> > >Subject: Client drops connection
> > >Date: Wed, 4 Jan 2006 19:32:06 -0500
> > >
> > >Hello,
> > >
> > >I have an Axis 1.3 (java) based Service that is consumed by an Axis
> > >1.3 (java) client. I notice that (netsta -a) after the client invokes
> > >a method, it drops the TCP connection to the server. I say this
> > >because, the socket on the server side changes to TIME_WAIT state
> > >instead of ESTABLISHED state. I am positive that on the client, I
> > >don't lose reference to the ServiceLocator or the Stub. Can you please
> > >explain me this behavior and how i can keep the connection open for
> > >the entire session.
> > >
> > >-Mahesh
> >
> > _________________________________________________________________
> > FREE pop-up blocking with the new MSN Toolbar – get it now!
> > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

-- 
http://www.braziloutsource.com/

Re: Client drops connection

Posted by Mahesh Seshan <ma...@gmail.com>.
Thank you very much for the pointer. Can I get a little more insight into

a. making axis client use the CommonsHTTPSender instead of HTTPSender
as the transport implementation.

b. setting properties for pooled connections/socket.

Once again, thank you very much for the help.

-Mahesh

On 1/5/06, Jarmo Doc <ja...@hotmail.com> wrote:
> Last time I investigated this (with Axis 1.2), I came to the conclusion that
> you need to use the org.apache.axis.transport.http.CommonsHTTPSender class
> in conjunction with the Jakarta Commons HttpClient package.
>
> See http://issues.apache.org/bugzilla/show_bug.cgi?id=16522
>
>
> >From: Mahesh Seshan <ma...@gmail.com>
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: Client drops connection
> >Date: Wed, 4 Jan 2006 19:32:06 -0500
> >
> >Hello,
> >
> >I have an Axis 1.3 (java) based Service that is consumed by an Axis
> >1.3 (java) client. I notice that (netsta -a) after the client invokes
> >a method, it drops the TCP connection to the server. I say this
> >because, the socket on the server side changes to TIME_WAIT state
> >instead of ESTABLISHED state. I am positive that on the client, I
> >don't lose reference to the ServiceLocator or the Stub. Can you please
> >explain me this behavior and how i can keep the connection open for
> >the entire session.
> >
> >-Mahesh
>
> _________________________________________________________________
> FREE pop-up blocking with the new MSN Toolbar – get it now!
> http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>

RE: Client drops connection

Posted by Jarmo Doc <ja...@hotmail.com>.
Last time I investigated this (with Axis 1.2), I came to the conclusion that 
you need to use the org.apache.axis.transport.http.CommonsHTTPSender class 
in conjunction with the Jakarta Commons HttpClient package.

See http://issues.apache.org/bugzilla/show_bug.cgi?id=16522


>From: Mahesh Seshan <ma...@gmail.com>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Client drops connection
>Date: Wed, 4 Jan 2006 19:32:06 -0500
>
>Hello,
>
>I have an Axis 1.3 (java) based Service that is consumed by an Axis
>1.3 (java) client. I notice that (netsta -a) after the client invokes
>a method, it drops the TCP connection to the server. I say this
>because, the socket on the server side changes to TIME_WAIT state
>instead of ESTABLISHED state. I am positive that on the client, I
>don't lose reference to the ServiceLocator or the Stub. Can you please
>explain me this behavior and how i can keep the connection open for
>the entire session.
>
>-Mahesh

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/