Juergen Zimmermann [
http://community.jboss.org/people/Juergen.Zimmermann] created the
discussion
"How to migrate from JMX to Profile Service?"
To view the discussion, visit:
http://community.jboss.org/message/535347#535347
--------------------------------------------------------------
I'm using the following JMX based method to reset the authentication cache. How can I
migrate this method and use the Profile Service of JBossAS 6.0.0.M2? Any hint is
appreciated!
MBeanServer server = MBeanServerFactory.findMBeanServer(null).get(0);
ObjectName jaasSecurityManager = new
ObjectName("jboss.security:service=JaasSecurityManager");
Principal user = new SimplePrincipal(username);
Object[] params = { loginDomainName, user };
String[] paramTypes = { String.class.getName(), Principal.class.getName() };
server.invoke(jaasSecurityManager, "flushAuthenticationCache", params,
paramTypes);
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/535347#535347]
Start a new discussion in JBoss Microcontainer at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]