// We build a client with 2 max active // connections, and 2 max per route.
this.connMgr.setMaxTotal(maxConn);
this.connMgr.setDefaultMaxPerRoute(maxConn);
HttpAsyncRequestHandlerRegistry registry = new HttpAsyncRequestHandlerRegistry();
registry.register("*", new BufferingAsyncRequestHandler(new SimpleService()));
HttpHost target = start(registry, null);
// Bottom of the pool : a *keep alive* connection to Route 1.
HttpContext context1 = new SyncBasicHttpContext();