Oleg Kalnichevski <olegk 'at' apache.org> writes: > If you absolutely have to create new instances of HttpClient we > recommend explicitly shutting down the connection manager, whenever you > are done using an HttpClient instance: > > > class MyCommunicationComponent { > > private void doStuff() { > > MultiThreadedHttpConnectionManager connman = > new MultiThreadedHttpConnectionManager(); > HttpClient agent = new HttpClient(connman); > HttpMethod method = new GetMethod(timerURL); > agent.executeMethod(method); > ... > connman.shutdown(); > } > }
And what if we create an HttpClient instance with HttpClient agent = new HttpClient(); in a request, do we need any shutdown() like method call? -- Guillaume Cottenceau --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]