Chris, CXF doesn't use the Apache HttpClient for anything. At this point, we only use the HttpURLConnection object built into the JDK. Thus, any bugs or issues with Apache HttpClient would not really apply to CXF. (although any bugs or issues with the JDK's HttpURLConnection would apply)
In anycase, since we don't use HttpClient, there isn't a way to use the MultiThreadedHttpConnectionManager. Dan On Monday 19 April 2010 11:27:31 am Kessel, Christopher wrote: > Anyone have a thought on this? > > Unfortunately, we've been burned by Apache's HttpClient leaking file > handles without the MultiThreadedHttpConnectionManager and there is zero > chance I'll be allowed to ship production code without using it again > (or something similar) with CXF. I'd have to find some other SOAP client > to use, which I'd rather avoid. > > Thanks, > Chris > > -----Original Message----- > From: Kessel, Christopher > Sent: Thursday, April 15, 2010 10:44 AM > To: '[email protected]' > Subject: Using a MultiThreadedHttpConnectionManager with > JaxWsProxyFactoryBean? > > How can I inject the connection handler into the JaxWsProxyFactoryBean? > > Our application literally sends hundreds of thousands of requests an > hour and we've found we must use the MultiThreadedHttpConnectionManager > or suffer running out of file handles (I was never able to tell if we > were leaking or just the system can't close them up as fast as we use > them). > > Our old interface uses HttpClient, with the multi-threaded connection > manager. Our new code is using CXF, with JaxWsProxyFactoryBean handling > everything under the covers (well, except hopefully I can control the > connection manager). > > I've scoured Google, but not had much luck finding an example. > > Thanks, > Chris -- Daniel Kulp [email protected] http://dankulp.com/blog
