[jboss-dev-forums] [JBoss Web Development] - Re: Force JBoss to refresh cache

rlutz do-not-reply at jboss.com
Tue Sep 13 15:45:38 EDT 2011


rlutz [http://community.jboss.org/people/rlutz] created the discussion

"Re: Force JBoss to refresh cache"

To view the discussion, visit: http://community.jboss.org/message/626328#626328

--------------------------------------------------------------
I tried changing jboss-service.xml to change the DefaultCacheTimeout to 0 from 1800, and also tried 
String domain = "jmx-console";
ObjectName jaasMgr = new ObjectName("jboss.security:service=JaasSecurityManager");
Object[] params = {domain};
String[] signature = {"java.lang.String"};
MBeanServer server = (MBeanServer) MBeanServerFactory.findMBeanServer(null).get(0);
server.invoke(jaasMgr, "flushAuthenticationCache", params, signature);
 


But that didn't seem to work either. I'm stumped  :(
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/626328#626328]

Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2112]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110913/17594869/attachment.html 


More information about the jboss-dev-forums mailing list