[hornetq-commits] JBoss hornetq SVN: r11453 - branches/Branch_2_2_EAP/src/main/org/hornetq/core/security/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Sep 30 13:23:19 EDT 2011
Author: clebert.suconic at jboss.com
Date: 2011-09-30 13:23:18 -0400 (Fri, 30 Sep 2011)
New Revision: 11453
Modified:
branches/Branch_2_2_EAP/src/main/org/hornetq/core/security/impl/SecurityStoreImpl.java
Log:
JBPAPP-7256 & SOA-3363 - invalidate security cache independently of the activity as JAAS won't set any callback when data is changed. We just have to invalidate it every X (configurable) milliseconds
Modified: branches/Branch_2_2_EAP/src/main/org/hornetq/core/security/impl/SecurityStoreImpl.java
===================================================================
--- branches/Branch_2_2_EAP/src/main/org/hornetq/core/security/impl/SecurityStoreImpl.java 2011-09-30 12:51:08 UTC (rev 11452)
+++ branches/Branch_2_2_EAP/src/main/org/hornetq/core/security/impl/SecurityStoreImpl.java 2011-09-30 17:23:18 UTC (rev 11453)
@@ -235,6 +235,8 @@
if (now - lastCheck > invalidationInterval)
{
invalidateCache();
+
+ lastCheck = now;
}
else
{
@@ -245,8 +247,6 @@
}
}
- lastCheck = now;
-
return granted;
}
More information about the hornetq-commits
mailing list