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

    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
    Rep Power


    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-07-2009, 12:36 AM
  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, 02: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