I am very frustrated while calling RPG program from my java code I am get stuck at any small issue and my application gets hanged. I know the problem is on my rpg program but cursor arn't return from there, that is come after a long time (15-20 min). i dont know what is the setting behind to return while exception throws on RPG program and how will I get the proper reason of that issue.
Is there any connection timeout concept? Please help me out this issue.