# Timeout in Server Log

**URL:** <https://techcommunity.softwareag.com/t/timeout-in-server-log/75970>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [January 11, 2008, 8:03pm UTC](https://techcommunity.softwareag.com/t/timeout-in-server-log/75970 "2008-01-11T20:03:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [January 11, 2008, 8:03pm UTC](https://techcommunity.softwareag.com/t/timeout-in-server-log/75970/1 "2008-01-11T20:03:16Z")

</div>

We have some long running Natural Programs that may take several minutes to respond back to ApplinX with data. I have encountered one that seems to work sometimes, and at other times, it doesn’t. In this process, the jsp page collects the input data and then sends it to the mainframe. The Natural program is processing but no data is transmitted for several minutes. I see in the log that some sort of timeout has occurred. It seems to be every minute. Where can I find this particular timer and can I reset it to be longer. It has nothing to do with any Path, and I have not set any Flicker parameter anywhere. In this particular process, there are no parameters in the Wait tab of the applicable Paths. My Session Host tab has a Non-activity timeout of 900 seconds. I have attached a gif of the log at the timeout point. Any ideas would be appreciated.

Thanks,

Joe

---

<div class="post-metadata">

**Author:** ![Ohad\_M](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Ohad\_M](https://techcommunity.softwareag.com/u/Ohad_M)\
**Post date:** [January 24, 2008, 8:48pm UTC](https://techcommunity.softwareag.com/t/timeout-in-server-log/75970/2 "2008-01-24T20:48:07Z")

</div>

Hi Joe,

ApplinX has a default “host quiet” timeout of one minute.  
On that specific screen you need ApplinX to wait longer, this is what you should do:

In your gx\_processHostKeyRequest method (it’s In GXBasicContext.java, unless you overriden it in the generated page) , add the following code:

if (getGXSession().getScreen().getName().equals(“screenName”)){ //screenName = the\_screen\_that\_runs\_the\_long\_proccess  
if (sendKeyRequest.getKeys().equals(“[theKey]”)){ // theKey = the\_Key\_that\_runs\_the\_long\_proccess  
long timeout = 120000; // Max amount of time to wait for host response in miliSeconds  
GXGetScreenRequest gsr = new GXGetScreenRequest();  
gsr.addWaitCondition(new GXWaitHostQuiet(timeout,0));  
getGXSession().sendKeys(sendKeyRequest);  
getGXSession().getScreen(gsr);  
}  
}  
else{  
super.gx\_processHostKeyRequest(sendKeyRequest);  
}

Hope this helps,  
Ohad M.

---

<div class="post-metadata">

**Author:** ![JoeA](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JoeA](https://techcommunity.softwareag.com/u/JoeA)\
**Post date:** [January 28, 2008, 5:41pm UTC](https://techcommunity.softwareag.com/t/timeout-in-server-log/75970/3 "2008-01-28T17:41:42Z")

</div>

Thanks, Ohad, I appreciate the assistance.

Joe

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:49pm UTC](https://techcommunity.softwareag.com/t/timeout-in-server-log/75970/4 "2021-04-02T14:49:03Z")

</div>


