Hello,

 

I’ve been moving from 4.0.3 to 4.2.

 

The following methods are deprecated:

 

  ClientConnectionManager cm = new
ThreadSafeClientConnManager(this.objHttpParams,
HttpUtils.createDefaultSchemeRegistry());

 

  ConnManagerParams.setTimeout(this.objHttpParams, 1);

 

 
ConnManagerParams.setMaxTotalConnections(this.objHttpParams,Integer.MAX_VALU
E);

  

  ConnManagerParams.setMaxConnectionsPerRoute(this.objHttpParams, new
ConnPerRouteBean(Integer.MAX_VALUE));

 

 

 

I see that now I have to use:

 

   ClientConnectionManager cm = new
PoolingClientConnectionManager(HttpUtils.createDefaultSchemeRegistry());

   this.objHttp               = new DefaultHttpClient(cm,
this.objHttpParams);

 

 

But how can I set the pool timeout, maxtotal and maxtotalperorute?

 

Thanks,

Joan.

 

Reply via email to