On 2002.05.02 13:31:49 -0400 Scott M Stark wrote: > > xxxxxxxxxxxxxxxxxxxxxxxx > Scott Stark > Chief Technology Officer > JBoss Group, LLC > xxxxxxxxxxxxxxxxxxxxxxxx > ----- Original Message ----- > From: "David Jencks" <[EMAIL PROTECTED]> > To: "jboss-dev" <[EMAIL PROTECTED]> > Sent: Thursday, May 02, 2002 9:31 AM > Subject: [JBoss-dev] Does JaasSecurityManager need flushCache method? > (jboss > 3) > > > > I'm wondering if the JaasSecurityManager needs its flushCache method. > It > > does not appear to be called anywhere, and I don't think it is normally > > accessed except through its interfaces?? Is the preferred way to flush > the > > cache the JaasSecurityManagerServiceMBean.flushAuthenticationCache > method? > > > That is correct. The JaasSecurityManagerService.flushAuthenticationCache > used > to call the JaasSecurityManager.flushCache method but now it keeps track > of > the > caches since they can be specified at the JaasSecurityManagerService > level. > > > Also, in the jca stuff I now have 2 references to security stuff: a > jndi > > name for the realm (? domain?) and an mbean ref to > > JaasSecurityManagerService, so I can flush the cache. This seems > excessive > > to me. Is there a way to do this with only one reference of some kind? > > > Caching is not part of any of the manifest security manager related > interfaces > so there is not a single reference you can obtain short of going to the > org.jboss.security.plugins.JaasSecurityManager object which is not a good > idea. > In what circumstances do you flush the cache? This should really not be a > framework level event.
The jca PasswordCredential includes an object reference to the ManagedConnectionFactory it is for. When a ConnectionManager is stopped and restarted, you get a different ManagedConnectionFactory instance. The only way I have found to make sure that subsequent logins get the new reference is to flush the cache. I'm using mbean notifications from the ConnectionManager mbean to the login module to tell the login module its ManagedConnectionFactory reference is outdated, but that doesn't do anything to the cached Subject. thanks david jencks > > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We > supply > the hardware. You get the recognition. Email Us: > [EMAIL PROTECTED] > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > > _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
