Project

General

Profile

« Previous | Next » 

Revision b14494a9

Added by Andreas Kohlbecker over 5 years ago

fix #7036 making sure all spring beans are disposed when the vaadin session times out

  • RegistrationToolbar, RegistrationUI, RegistrationWorkingsetPresenter, NavigationManagerBean as DisposableBean
  • seetting the vaadin closeIdleSessions parameter to true in web.xml

View differences:

src/main/webapp/WEB-INF/web.xml
37 37
    	<servlet-name>Cdm_vaadin Application</servlet-name>
38 38
    	<servlet-class>com.vaadin.server.VaadinServlet</servlet-class>
39 39
    	<init-param>
40
    		<description>
41
    		Legacy mode to return the value of the property as a string from AbstractProperty.toString()</description>
40
    		<description>Legacy mode to return the value of the property as a string from AbstractProperty.toString()</description>
42 41
    		<param-name>legacyPropertyToString</param-name>
43 42
    		<param-value>false</param-value>
44 43
    	</init-param>
44
        <init-param>
45
          <!-- 
46
            If the closeIdleSessions parameter for the servlet is
47
            enabled (disabled by default), Vaadin closes the UIs and the session after the time specified
48
            in the session-timeout parameter expires after the last non-heartbeat request.
49
            For session-timeout see <session-config>
50
           -->
51
          <param-name>closeIdleSessions</param-name>
52
          <param-value>true</param-value>
53
        </init-param>
45 54
    </servlet>
46 55

  
47 56
    <servlet-mapping>
......
87 96
      
88 97
      There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
89 98
      which don't seem to have an effect. 
99
      
100
      see also the notes at CdmVaadinConfiguration.Servlet
90 101
    -->
91 102
    <context-param>
92
      <description>Vaadin production mode</description>
93
      <param-name>productionMode</param-name>
94
      <param-value>false</param-value>
95
    </context-param>
96
    <context-param>
97
    	<description>
98
    	Vaadin production mode</description>
103
    	<description>Vaadin production mode</description>
99 104
    	<param-name>productionMode</param-name>
100 105
    	<param-value>false</param-value>
101 106
    </context-param>
107
    <!-- 
108
    <context-param>
109
      <param-name>heartbeatInterval</param-name>
110
      <param-value>300</param-value><!- - default is 300 seconds - ->
111
    </context-param> 
112
    -->
113
    
114
    <!-- configuring the session-timeout seems not to have an effect
115
    <session-config>
116
        <session-timeout>20</session-timeout><!- - jetty session-timeout default is 30 minutes - ->
117
    </session-config> 
118
    -->
119
    
102 120
</web-app>

Also available in: Unified diff