Mar 5th, 2013, 12:34 PM
How to handle timeout for a Rest call in Spring?
Can anyone help me with how to handle timeout for a Rest call in spring?
I tried these :
1. Setting JVM parameter ľAs the rest services dependent on JDK HTTP client in some of the Rest implementations
-Dsun.net.client.defaultConnectTimeout=1000 (Time to establish connection in millisec) Connection time out
-Dsun.net.client.defaultReadTimeout=1000 (Time to read content in millisec) Read time out
This is not working.
But, ran into jar issues as mentioned in:
Can anyone please help here?
Tags for this Thread