Author: artdaw
Date: 2011-03-17 14:47:39 -0400 (Thu, 17 Mar 2011)
New Revision: 22254
Added:
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/cron.xml
Modified:
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml
Log:
RF-10013: SessionCleanupServlet is added for GAE app. Verified by Konstantin Mishin.
Added: branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/cron.xml
===================================================================
--- branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/cron.xml
(rev 0)
+++
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/cron.xml 2011-03-17
18:47:39 UTC (rev 22254)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<cronentries>
+ <cron>
+ <url>/_ah/sessioncleanup?clear</url>
+ <description>Clean up sessions</description>
+ <schedule>every 5 minutes</schedule>
+ </cron>
+</cronentries>
Modified:
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml
===================================================================
---
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml 2011-03-17
17:53:36 UTC (rev 22253)
+++
branches/RF-10753/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml 2011-03-17
18:47:39 UTC (rev 22254)
@@ -95,6 +95,10 @@
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
+ <servlet>
+ <servlet-name>_ah_sessioncleanup</servlet-name>
+
<servlet-class>com.google.apphosting.utils.servlet.SessionCleanupServlet</servlet-class>
+ </servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
@@ -103,4 +107,17 @@
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>_ah_sessioncleanup</servlet-name>
+ <url-pattern>/_ah/sessioncleanup</url-pattern>
+ </servlet-mapping>
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>session-cleanup</web-resource-name>
+ <url-pattern>/_ah/sessioncleanup</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>admin</role-name>
+ </auth-constraint>
+ </security-constraint>
</web-app>
\ No newline at end of file
Show replies by date