1

I need to set up an HTTP connection pool in a Spring app on a Tomcat server.

We are debating whether to define the pool at the application or at the server level (applicationContext.xml vs server.xml).

My problem is: I've looked and I've looked, but I just can't find any info on doing either.

For now, I'm working with org.apache.http.impl.conn.PoolingClientConnectionManager inside my class, and it's working ok.

How would I be able to define a pool outside my Java code and work with it from there?

Anders R. Bystrup
  • 15,729
  • 10
  • 59
  • 55
Marceau
  • 1,643
  • 4
  • 17
  • 27

1 Answers1

0

Here is the configuration reference you are looking for for tomcat 7: http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#Standard_Implementation

Here is also another SO post on the same subject: How to increase number of threads in tomcat thread pool?

Community
  • 1
  • 1
tom
  • 2,735
  • 21
  • 35