Community

How to migrate from JMX to Profile Service?

created by Juergen Zimmermann in JBoss Microcontainer - View the full discussion

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

Start a new discussion in JBoss Microcontainer at Community