| Author |
Hoe to get Socket Time Out
|
suneel kota
Greenhorn
Joined: Jun 06, 2006
Posts: 24
|
|
Hi all, I am using java.net.URL in my program, i am calling a web service with this URL.. But i need to get the Socket time out if service is not available. How can it be done.. My requirement is when ever service is not available for 10 seconds i need to call an error page. please suggest me.. Regards SuneelKota
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
|
java.net.URLConnection, which you can create from URL, has several methods for managing timeout values.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
 |
|
|
subject: Hoe to get Socket Time Out
|
|
|