Configuring timeouts for Vaadin UI

Information about development with ProjX.

Configuring timeouts for Vaadin UI

Postby Development@SIB » Thu Oct 20, 2016 1:35 pm

A JVx application has custom timeouts for master and sub session. The timeouts won't work if you use vaadin UI because a web application uses http session timeout. The vaadin documentation contains information about Session Timeout After User Inactivity.

Our WebApplicationSetup implementation overrules the session timeout properties of config.xml by setting:

Code: Select all
launcher.setParameter("Application.connection.timeout", Boolean.FALSE.toString());
launcher.setParameter("Application.subconnection.timeout", Boolean.FALSE.toString());

If set to false, the timeouts will be set to -1 (= infinitly).

This is the default behavior with WebApplicationSetup but it's also possible to configure custom timeouts for master and sub session by adding the timeout constants:

Code: Select all
"Application.connection.timeout"
"Application.subconnection.timeout"

as parameters to the deployment deskriptor (web.xml):
Code: Select all
<init-param>
    <param-name>Application.connection.timeout</param-name>
    <!-- 30 minutes -->
    <param-value>30</param-value>
</init-param>
User avatar
Development@SIB
 
Posts: 310
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation