Reduce the live time of desktops

Keep alive pages with timers and reduce timeout time for desktops.

FEA: ItEr74S08DeployFramework
This commit is contained in:
Óscar González Fernández 2011-05-23 04:16:26 +02:00
parent 21d1bd129f
commit 5eca63869d
5 changed files with 14 additions and 5 deletions

View file

@ -28,6 +28,8 @@ planner = self;
</zscript>
<hbox align="center" id="toolbar">
<!-- 30 seconds timer, to keep alive page -->
<timer repeats="true" running="true" delay="30000" onTimer=""/>
<separator />

View file

@ -28,7 +28,7 @@ resourcesLoadPanel = self;
]]>
</zscript>
<timer repeats="true" running="true" delay="30000" onTimer=""/>
<borderlayout sclass="resourcesloadlayout" width="auto" height="100%">
<north height="30px" border="0" sclass="toolbar-box">
<hbox align="center" id="toolbar">

View file

@ -3,9 +3,16 @@
<log-base></log-base>
</log>
<desktop-config>
<!-- seconds it takes between requests for a desktop to be invalidated -->
<!-- a timer is introduced to avoid invalidation of pages still open -->
<desktop-timeout>60</desktop-timeout>
</desktop-config>
<session-config>
<!-- 1 hour for timeout-->
<session-timeout>3600</session-timeout>
<!-- 0 implies default from web.xml -->
<session-timeout>0</session-timeout>
<timer-keep-alive>true</timer-keep-alive>
</session-config>
<error-page>
<exception-type>java.lang.Throwable

View file

@ -45,6 +45,7 @@ signature="java.lang.Boolean isDefaultPasswordsControl()"?>
<div xmlns:n="http://www.zkoss.org/2005/zk/native" apply="${templateCtrl}" height="100%">
<timer repeats="true" running="true" delay="30000" onTimer=""/>
<borderlayout height="100%" width="100%" >
<north border="none">
<n:div>
@ -69,7 +70,6 @@ signature="java.lang.Boolean isDefaultPasswordsControl()"?>
</n:tr>
</n:table>
<n:div class="user-area">
<n:table width="100%" border="0" cellspacing="0" cellpadding="0">
<n:tr>

View file

@ -41,7 +41,7 @@
editController = editTaskController;
]]>
</zscript>
<timer repeats="true" running="true" delay="30000" onTimer=""/>
<borderlayout sclass="resourcesloadlayout" width="auto">
<!-- Top control button bar -->