From: <fza...@us...> - 2005-11-30 22:04:37
|
Update of /cvsroot/struts/ajaxchat/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13448/WEB-INF Modified Files: app-config.xml struts-config.xml web.xml Log Message: Index: app-config.xml =================================================================== RCS file: /cvsroot/struts/ajaxchat/WEB-INF/app-config.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** app-config.xml 29 Nov 2005 23:08:29 -0000 1.1 --- app-config.xml 30 Nov 2005 22:04:25 -0000 1.2 *************** *** 1,3 **** --- 1,4 ---- <config> + <!-- maxMessages is the maximum number of messages that will be stored in --> <!-- the messages collection of each room. Any time a message is posted --> *************** *** 8,10 **** --- 9,23 ---- <!-- efficient too. --> <maxMessages>250</maxMessages> + + <!-- userInactivitySeconds is the maximum number of seconds that can --> + <!-- elapse between AJAX requests before a user is considered inactive. --> + <!-- When a user is considered inactive, they are forcibly removed --> + <!-- from all rooms and from the application. This is to deal with the --> + <!-- case of a user closing the browser window without properly logging --> + <!-- out, or possibly a Javascript error that stops the AJAX request --> + <!-- timers. Note that this was originally done in a SessionListener, --> + <!-- but because of problems seem in some containers, this had to be --> + <!-- done instead. --> + <userInactivitySeconds>15</userInactivitySeconds> + </config> \ No newline at end of file Index: struts-config.xml =================================================================== RCS file: /cvsroot/struts/ajaxchat/WEB-INF/struts-config.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** struts-config.xml 29 Nov 2005 23:08:29 -0000 1.1 --- struts-config.xml 30 Nov 2005 22:04:25 -0000 1.2 *************** *** 5,8 **** --- 5,9 ---- <struts-config> + <!-- Form Beans --> <form-beans> *************** *** 18,21 **** --- 19,23 ---- </form-beans> + <!-- Mappings --> <action-mappings> *************** *** 66,69 **** --- 68,72 ---- + <!-- Message Resources --> <message-resources parameter="app_resources" /> Index: web.xml =================================================================== RCS file: /cvsroot/struts/ajaxchat/WEB-INF/web.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** web.xml 29 Nov 2005 23:08:29 -0000 1.1 --- web.xml 30 Nov 2005 22:04:25 -0000 1.2 *************** *** 30,34 **** <filter-mapping> <filter-name>sessionCheckerFilter</filter-name> ! <url-pattern>/*</url-pattern> </filter-mapping> --- 30,34 ---- <filter-mapping> <filter-name>sessionCheckerFilter</filter-name> ! <url-pattern>*.do</url-pattern> </filter-mapping> *************** *** 40,46 **** <listener-class>org.apache.struts.apps.ajaxchat.listener.ContextListener</listener-class> </listener> - <listener> - <listener-class>org.apache.struts.apps.ajaxchat.listener.SessionListener</listener-class> - </listener> <!-- Action Servlet. --> --- 40,43 ---- |