Return-Path: Delivered-To: apmail-jakarta-httpclient-user-archive@www.apache.org Received: (qmail 1478 invoked from network); 15 Apr 2007 11:15:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2007 11:15:38 -0000 Received: (qmail 56959 invoked by uid 500); 15 Apr 2007 11:15:42 -0000 Delivered-To: apmail-jakarta-httpclient-user-archive@jakarta.apache.org Received: (qmail 56938 invoked by uid 500); 15 Apr 2007 11:15:42 -0000 Mailing-List: contact httpclient-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: "HttpClient User Discussion" Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-user@jakarta.apache.org Received: (qmail 56923 invoked by uid 99); 15 Apr 2007 11:15:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 04:15:42 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=MSGID_MULTIPLE_AT,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mt.williams@ntlworld.com designates 81.103.221.48 as permitted sender) Received: from [81.103.221.48] (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2007 04:15:35 -0700 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20070415111525.DNBK19810.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Sun, 15 Apr 2007 12:15:25 +0100 Received: from ice0d0e8a55828 ([82.17.168.209]) by aamtaout01-winn.ispmail.ntl.com with ESMTP id <20070415111529.FGYP219.aamtaout01-winn.ispmail.ntl.com@ice0d0e8a55828> for ; Sun, 15 Apr 2007 12:15:29 +0100 From: "Mike Williams" To: Subject: MultiThreadedHttpConnectionManager Date: Sun, 15 Apr 2007 12:13:19 +0100 Message-ID: <001101c77f4f$14203ef0$3c60bcd0$@williams@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acd/TxKzTwpkddAmQRe2lP+hGxJdYA== Content-Language: en-gb X-Virus-Checked: Checked by ClamAV on apache.org Hello all, I'm currently using MultiThreadedHttpConnectionManager for a number of connections. Each thread uses GetMethod via HttpClient.executeMethod to obtain its data. However I'd like to have one particular connection to be 'reserved' and have priority over all other connections when required. I'm not sure how to approach the priority issue yet but I'm trying to reserve a connection from the MultiThreadedHttpConnectionManager by calling getConnectionWithTimeout() at the start of execution. This gives me a nice HttpConnection to play with but the method I wish to use with it uses GetMethod & executeMethod as stated earlier. Is there a way I can use the HttpConnection object with HttpClient.executeMethod for that specific connection? Any advice on how to tackle this would be appreciated, Regards, Mike --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpclient-user-help@jakarta.apache.org