Added a Servlet Filter to ensure that all exits out of JSF end with cleanup (SWF-306)

This commit is contained in:
Ben Hale
2007-06-12 20:17:59 +00:00
parent 33c34b61cb
commit f5d9813d78
4 changed files with 187 additions and 0 deletions

View File

@@ -23,6 +23,18 @@
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>
<!-- Guarantees that under all JSF exit conditions, the flow context will be cleaned up -->
<filter>
<filter-name>Flow System Cleanup Filter</filter-name>
<filter-class>org.springframework.webflow.executor.jsf.FlowSystemCleanupFilter</filter-class>
</filter>
<!-- Filters all request to *.faces to the Flow System Cleanup Filter for guarenteed cleanup -->
<filter-mapping>
<filter-name>Flow System Cleanup Filter</filter-name>
<url-pattern>*.faces</url-pattern>
</filter-mapping>
<!-- The front controller for the JSF application, responsible for handling all application requests -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>