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/java/eu/etaxonomy/cdm/addon/config/CdmVaadinConfiguration.java
123 123
    ApplicationConfigurationFile configFile = new ApplicationConfigurationFile(PROPERTIES_FILE_NAME, APP_FILE_CONTENT);
124 124

  
125 125
    /*
126
     * NOTE: It is necessary to map the URLs starting with /VAADIN/* since none of the
126
     * NOTES:
127
     *
128
     * (1) It is necessary to map the URLs starting with /VAADIN/* since none of the
127 129
     * @WebServlets is mapped to the root path. It is sufficient to configure one of the
128 130
     * servlets with this path see BookOfVaadin 5.9.5. Servlet Mapping with URL Patterns
131
     *
132
     * (2) @VaadinServletConfiguration is not used here, all DeploymentConfiguration is
133
     * configured in the web.xml. This way it it easier to modify the parameters for different
134
     * build environments like test and production
129 135
     */
130 136
    @WebServlet(value = {"/app/*", "/VAADIN/*"}, asyncSupported = true)
131 137
    public static class Servlet extends SpringVaadinServlet {

Also available in: Unified diff