Hi,
In my code i have created one URLHTTPConnection to deployed servlet. Here the request is very long running process and my connection will waiting for response from Servlet. I am facing problem with timeout and re-try behavior of URLConnection. Before throwing soket exception , URlconnection retries by requesting once again with same input.
We have a security code validation mechanism at servlet side which validates every request. As URL Connection sending same request with old security token , it is getting rejected by Servlet because of security token's short life time.
Again this problem is corrupting server side data because of multiple invocation.
Please let me how to overcome this problem.
I need to know how to disable with re- invocation. I have tried setting longer readTimeout property but it is not working.