You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by Don Montealegre <do...@fluxion.com.ph> on 2007/07/02 09:53:32 UTC

Re: XmlRpcClient persistent connections

thanks a lot.!! i will be trying dat on v. 3.0

----- Original Message ----- 
From: "Stanislav Miklik" <st...@gmail.com>
To: <xm...@ws.apache.org>
Sent: Friday, June 29, 2007 8:20 PM
Subject: Re: XmlRpcClient persistent connections


> Hi,
>
> I am using v.2.0.1 also you can search for sources. Only that I need to do
> is following:
> 1. I have my own client as follows:
> /**
> * Lite XML RPC client that reuse its transport for more request. Therefore
> this
> * class is not threadsafe!
> */
> public class LiteClient extends XmlRpcClientLite {
>
>   private XmlRpcTransport transport = null;
>
>   public LiteClient(URL url) {
>      super(url);
>   }
>
>   @Override
>   protected XmlRpcTransport createTransport() {
>      if (transport == null) {
>         transport = new LiteTransport(this.url);
>      }
>      return transport;
>   }
>
> }
> 2. I have to copy LiteTransport because (if I remember good) it was not
> public.
> 3. Switch on keepalive not to close the connection after request.
>
> I am not sure if Lite* is included in v3.0, but at least you can see how I
> manipulate it to get this behavior.
> Hope it will help.
>
> Stano
> On 6/29/07, Don Montealegre <do...@fluxion.com.ph> wrote:
>>
>> hmm tnx!
>>
>>     can u point me to which part i should use or manipulate even if your
>> using the old version? so that at least i will have an idea . thanks 
>> again
>> :)
>> ----- Original Message -----
>> From: "Stanislav Miklik" <st...@gmail.com>
>> To: <xm...@ws.apache.org>
>> Sent: Friday, June 29, 2007 5:48 PM
>> Subject: Re: XmlRpcClient persistent connections
>>
>>
>> > Hi,
>> >
>> > I think you can manage createTransport of the client always to return
>> > transport that will keep only one connection.
>> > I am using something like that but I am using the old (2.xxx) version 
>> > of
>> > XML
>> > RPC and LiteTransport with keep-alive, but I assume that something like
>> > that
>> > is possible also in the new one.
>> >
>> > Regards
>> > Stano
>> >
>> > On 6/29/07, Don Montealegre <do...@fluxion.com.ph> wrote:
>> >>
>> >> greetings ,
>> >>
>> >>     is there a way to just open and use 1 connection using 
>> >> XmlRpcClient
>> >> and just pass multiple request to it? tnx
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: xmlrpc-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: xmlrpc-dev-help@ws.apache.org
>>
>>
> 



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