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
posted
0
One way of doing this in core java is using ThreadObj.join(long millisec) on the main thread.