[jboss-user] [JBoss Microcontainer] - How to migrate from JMX to Profile Service?

Juergen Zimmermann do-not-reply at jboss.com
Fri Apr 2 05:30:41 EDT 2010


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&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100402/950dfcb5/attachment.html 


More information about the jboss-user mailing list