Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 44835 invoked from network); 8 Jul 2009 07:47:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 07:47:18 -0000 Received: (qmail 67212 invoked by uid 500); 8 Jul 2009 07:47:27 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 67108 invoked by uid 500); 8 Jul 2009 07:47:26 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 67097 invoked by uid 99); 8 Jul 2009 07:47:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 07:47:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of vijay.shad@gmail.com designates 209.85.212.203 as permitted sender) Received: from [209.85.212.203] (HELO mail-vw0-f203.google.com) (209.85.212.203) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 07:47:16 +0000 Received: by vwj41 with SMTP id 41so4178700vwj.10 for ; Wed, 08 Jul 2009 00:46:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=njfFVfR3fxSIa5v+1HcAM2qxF3a7WKsrcsw3e4KQvN0=; b=OyUZbCNcaUKL1S1/tS9uRIIjr9bD5Etf9f9mAv48daXFP70+6Ei8H77y+i8spH19yY AkXEP0QmXGn3p5DEHLFpLZqXIF9DifZ/6PP5ZZtnJ5857fzURgpFhzQMHpVqo4fME5SK iKQkmCVni7I9+os0DV+2HEbM6gau9+MzPcmAY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZjZGUHXumkRSruSN9We/Hr3BH9Oh16ncG9hqP0RGBE3UW4RR3/liqgN2V3Xe7Oywz/ sUqecH9zVh60bki6P4bwRPTxbzuPn490q6ZxL2X5BU794Fp1lkM7YAesX2dXXSEkUEJr vhxZcjoCeB5H7lEOR4lVjspdJ/gDmE9rDBDJw= MIME-Version: 1.0 Received: by 10.220.91.133 with SMTP id n5mr13601393vcm.102.1247039215626; Wed, 08 Jul 2009 00:46:55 -0700 (PDT) Date: Wed, 8 Jul 2009 13:16:55 +0530 Message-ID: <56fe680907080046h74b1162vf5b756dd2b9ee092@mail.gmail.com> Subject: Connection management between two servers(Connection Pool) From: vijay shanker To: user@commons.apache.org Content-Type: multipart/alternative; boundary=0016e647622a77e8db046e2cf191 X-Virus-Checked: Checked by ClamAV on apache.org --0016e647622a77e8db046e2cf191 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I am working on a project to implement connection pooling between two server. and i am using connection pool as a mechanism to manage connections. To communicate between these two servers i am using HttpClient library. Now the problem part: lets say i have two servers. main server is A. there are two other service providing services to this A. lets call then B and C. My requirement: I have 5 open connections from A to B. If all 5 connections are active and being used. then a should try to connect to server C. server C has also 5 open connection. How should i design this connection manager. My plan: I should manage two different pools for both the servers. If server B got exhausted try to get a connection object from another pool. Please let me know expert opinions. Warm Regards, VSD --0016e647622a77e8db046e2cf191--