This content has been marked as final.
Show 1 reply
-
1. Re: Jboss 3 Flushing Authentication Cache
the_mike_d Aug 19, 2002 9:40 PM (in response to the_mike_d)I figured it out. Here's the a summary of the code taken from JBossTestServices.java in the source.
import org.jboss.jmx.adaptor.rmi.*;
InitialContext initialContext = new InitialContext();
String serverName = System.getProperty("jbosstest.server.name");
if (serverName == null)
serverName = java.net.InetAddress.getLocalHost().getHostName();
RMIAdaptor server = (org.jboss.jmx.adaptor.rmi.RMIAdaptor)initialContext.lookup("jmx:" + serverName + ":rmi");
ObjectName jaasMgr = new ObjectName("jboss.security:name=JaasSecurityManager");
Object[] params = {"SecurityRealm"};
String[] signature = {"java.lang.String"};
server.invoke(jaasMgr, "flushAuthenticationCache", params, signature);