Results 1 to 2 of 2
  1. #1
    neeti is offline Member
    Join Date
    Jul 2009
    Posts
    13
    Rep Power
    0

    Default Connection pooling

    How can we perform connection pooling using httpclient.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    I think this happens when we create the HttpClient instance once and re-use it over the lifetime of the application, for example, in a servlet, having this be an class member and created on init(). ; creating a new HttpClient object on before every method invocation will certainly work on a new HTTP connection.

    note that we still need to release the connection on every method.

    see also: HttpClient - HttpClient Tutorial

Similar Threads

  1. Thread Pooling
    By jshailes in forum Threads and Synchronization
    Replies: 5
    Last Post: 11-06-2009, 11:36 PM
  2. Replies: 7
    Last Post: 10-20-2009, 10:34 AM
  3. no connection
    By even in forum JDBC
    Replies: 15
    Last Post: 01-02-2008, 01:50 PM
  4. connection pooling
    By kal132 in forum JDBC
    Replies: 1
    Last Post: 06-27-2007, 02:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •