Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2007, 09:29 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
Detect TimeOut in a HttpURL Connection
I'm trying to invoke a web service using HttpURLConnection and I'm doing the post of SOAP requirement

In general it works, but by problems with the WS it that sometimes freezes
My program freeze in the getResponseCode() method
I would need to detect the time out, and then to return an exception or something like that.

Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-02-2007, 05:28 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
In java 1.5 is simple.There are 2 timeout
one is the connection setConnectTimeout(..))
and the other es to read
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-02-2007, 05:29 PM
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
URLConnection (Java 2 Platform SE 5.0))
If you use 1.4, maybe it would be better if you use Httpclient of Apache
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
connection problem subash Database 5 04-22-2008 10:17 AM
JSP - using connection cache Java Tip Java Tips 0 01-30-2008 10:54 AM
Detect loading of ImageIcon from URL? barkster Java Applets 1 01-29-2008 08:04 PM
How to detect USB device drives & set/remove file attributes sharafat Advanced Java 0 01-20-2008 07:07 AM
no connection even Database 15 01-02-2008 02:50 PM


All times are GMT +3. The time now is 09:20 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org