aspose file tools*
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 Java 8 in Action this week in the Java 8 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
How to Debug Java Servlets on AS400
Java and AS400
Creating an AS400-Object
Connection wait timeout
How to maintain user name in all the Jsp pages