This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Timeout implemendation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Timeout implemendation" Watch "Timeout implemendation" New topic
Author

Timeout implemendation

babuce babuce
Greenhorn

Joined: Apr 24, 2006
Posts: 1
Hi ,

I am calling an AS400 application from JAVA program using the AS400 JAVA libraries.
Each time a request come I am creatin a separate thread to call AS400.

The AS400 application api does not support timeout feature and it hands indefinitly at times.

I want to implement the timeout feature in my JAVA code.

Can any one help me to implement this.



Thanks,
Babu
Vinod John
Ranch Hand

Joined: Jun 23, 2003
Posts: 162
One way of doing this in core java is using ThreadObj.join(long millisec) on the main thread.
Dave Wingate
Ranch Hand

Joined: Mar 26, 2002
Posts: 262
Yep, something like ....




Fun programming etcetera!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timeout implemendation
 
Similar Threads
Creating an AS400-Object
How to maintain user name in all the Jsp pages
How to Debug Java Servlets on AS400
Connection wait timeout
Java and AS400