Mike
On Wednesday, October 15, 2003, at 01:20 PM, Itai Brickner wrote:
Hi Mike,
I think the problem was actually solved once I added connectionManager.setConnectionStaleCheckingEnabled(true);
does this makes sense?
thanks,
Itai --- Michael Becke <[EMAIL PROTECTED]> wrote:Hi Itai,<http://jakarta.apache.org/commons/httpclient/logging.html>
Could you be more specific about what you mean by reconnect? What exactly is happening? A stack trace and wire log
---------------------------------------------------------------------would be helpful. Generally speaking HttpClient should handle creating, opening and closing all connections. You are only responsible for releasing the connection after each method execution.
Mike
On Tuesday, October 14, 2003, at 01:13 PM, Itai Brickner wrote:
I am using the The MultiTrhadHttpConnectionManger,andsearchI am not sure how to reconnect when I get HttpRecoverableExeception due to long idle time
this is the code im using
public void foo(MultiThreadedHttpConnectionManager manager) { GetMethod method; try { HttpClient con=new HttpClient(manager); method=new GetMethod(string); con.executeMethod(method); } catch (HttpRecoverableException e) { //I am not sure how to reconnect } finally { method.releaseConnection(); } }
thanks, Itai
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved producthttp://shopping.yahoo.com
[EMAIL PROTECTED]To unsubscribe, e-mail:
---------------------------------------------------------------------For additional commands, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail:[EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
