Hello Leo,

On Sunday, August 24, 2003, at 04:04 PM, Leo Galambos wrote
Hi Mike,
what do you suggest? Your tutorial does not cover this - a) you use System.exit(-1) which would not be a good solution in my case ;-); or b) you do nothing, which does not work, because "executeMethod" would throw some exception again (I tried it with a previous HC version). Should I use "releaseConnection"? Will it work correctly?

It's really up to you and your application. As you note, executing the method again will most likely just end up with the same exception, except perhaps in the case of a connection timeout. The problem with what is being done now is that the method will get executed again but in an unconfigured state. Calling recycle() is the correct thing to do as it releases the connection and resets the method. A method cannot be executed more than once without being recycled. So, if you want to execute more than once you have to recycle() or create a new method.


BTW: I will try "httpConnectionFactoryTimeout" as soon as we are sure, that "recycle" is not the problematic point which causes the issue.

Please do. Recycle is not the cause of the problem, unless releaseConnection() itself has some issues(unlikely but nothing is impossible).


Mike


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to