[jboss-cvs] JBossAS SVN: r111788 - branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/session.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jul 20 01:07:24 EDT 2011
Author: tkimura
Date: 2011-07-20 01:07:24 -0400 (Wed, 20 Jul 2011)
New Revision: 111788
Modified:
branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossManager.java
Log:
JBPAPP-6202 DataSourcePersistentManager ignores session-timeout value in web.xml
Modified: branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossManager.java
===================================================================
--- branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossManager.java 2011-07-20 04:51:24 UTC (rev 111787)
+++ branches/JBPAPP_5_1/tomcat/src/main/org/jboss/web/tomcat/service/session/JBossManager.java 2011-07-20 05:07:24 UTC (rev 111788)
@@ -388,9 +388,23 @@
/**
* {@inheritDoc}
*/
- public void propertyChange(PropertyChangeEvent evt)
+ public void propertyChange(PropertyChangeEvent event)
{
- support_.firePropertyChange(evt);
+ support_.firePropertyChange(event);
+ // Validate the source of this event
+ if (!(event.getSource() instanceof Context))
+ return;
+ Context context = (Context) event.getSource();
+
+ // Process a relevant property change
+ if (event.getPropertyName().equals("sessionTimeout")) {
+ try {
+ setMaxInactiveInterval
+ ( ((Integer) event.getNewValue()).intValue()*60 );
+ } catch (NumberFormatException e) {
+ log_.error("Invalid session timeout setting " + event.getNewValue().toString());
+ }
+ }
}
/**
More information about the jboss-cvs-commits
mailing list