This content has been marked as final. 
    
Show                 6 replies
    
- 
        1. Re: How to pass parameters into mbean server during flush JAAS cache?ybxiang.china Sep 6, 2012 11:13 AM (in response to ybxiang.china)I am eager to know how releated bean is registered with the mbean server. Which java class? Which module? Which jar? 
- 
        2. Re: How to pass parameters into mbean server during flush JAAS cache?ybxiang.china Sep 6, 2012 11:16 AM (in response to ybxiang.china)I searched whole night with google(about 3 hours). Only https://issues.jboss.org/browse/AS7-4895?page=com.atlassian.jirafisheyeplugin:fisheye-issuepanel is usefull to me. Most articles are discussing mbeanServerConnection.invoke(mbeanName, "flushCache", null, null);Nobody posts info about the class name and the parameters. 
- 
        3. Re: How to pass parameters into mbean server during flush JAAS cache?ybxiang.china Sep 6, 2012 11:05 PM (in response to ybxiang.china)I searched flushCachein jboss installation, but the result has nothing to do with JMX.
- 
        4. Re: Re: How to pass parameters into mbean server during flush JAAS cache?tsk Jul 31, 2014 2:28 PM (in response to ybxiang.china)Hi Did you find answer? i am facing same issue. Thanks TSK 
- 
        5. Re: How to pass parameters into mbean server during flushing JAAS cache?ybxiang.china Aug 5, 2014 10:54 PM (in response to tsk)@RolesAllowed({KnownJaasRoles.ADMINISTRATOR}) private void flushJaasCache(String securityDomain){ try { javax.management.MBeanServerConnection mbeanServerConnection = java.lang.management.ManagementFactory .getPlatformMBeanServer(); javax.management.ObjectName mbeanName = new javax.management.ObjectName("jboss.as:subsystem=security,security-domain="+securityDomain); mbeanServerConnection.invoke(mbeanName, "flushCache", null, null); } catch (Exception e) { throw new SecurityException(e); } } 
- 
        6. Re: How to pass parameters into mbean server during flushing JAAS cache?ybxiang.china Aug 5, 2014 10:55 PM (in response to tsk)@RolesAllowed({KnownJaasRoles.ADMINISTRATOR}) private void flushJaasCache(String securityDomain, String jaasUsername){ try { Object[] params = {jaasUsername}; String[] signature = {"java.lang.String"}; javax.management.MBeanServerConnection mbeanServerConnection = java.lang.management.ManagementFactory .getPlatformMBeanServer(); javax.management.ObjectName mbeanName = new javax.management.ObjectName("jboss.as:subsystem=security,security-domain="+securityDomain); mbeanServerConnection.invoke(mbeanName, "flushCache", params, signature); } catch (Exception e) { throw new SecurityException(e); } } 
 
    