File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Timeout implemendation" Watch "Timeout implemendation" New topic

Timeout implemendation

babuce babuce

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.

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:
subject: Timeout implemendation
It's not a secret anymore!