Use a Scheduler MBean or the JMX Timer services on your own if you want the cache autoflushed every so often. Just have it call the example code below.
Jason -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Randahl Fink Isaksen Sent: Tuesday, September 24, 2002 7:04 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] JaasSecurityManager caching - hard-coded constant? Still, I wonder if the cache has some timing setting somewhere - I mean it probably flushes its entries at some point, rather than caching values which are (potentially) months old. - I do not suppose that JBoss contains some hard-coded constant setting for this... or... (?) Randahl -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: 24. september 2002 10:30 To: [EMAIL PROTECTED] Subject: Antwort: [JBoss-user] How to make DatabaseServerLoginModule stop caching Hi , As you know, the real reason of caching is to provide more performance. So, but what you want, is a API to flush out the old cache. But you have it, JaasSecurityManager In JBoss has a flush function by the name of flushAuthenticationCache here is a very simple code to use it. ObjectName jaasMgr = new ObjectName ("jboss.security:service=JaasSecurityManager"); ArrayList list = MBeanServerFactory.findMBeanServer(null); if ( list == null ) { return; } Iterator iter = list.iterator(); while (iter.hasNext()) { MBeanServer server = (MBeanServer)(iter.next()); if ( server.isRegistered(jaasMgr) ) { server.invoke(jaasMgr,"flushAuthenticationCache" ,new String[] { "your-section-name-from-login-config" } ,new String[] {"java.lang.String"}); break; } } } you should only set "your-section-name-from-login-config" . So, it means, you should call this block after any change in user roles or ........ Best regards Mehrdad Ashrafi. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user