-
1. Re: DatabaseLogin Authentication Cache Problem
petertje May 7, 2003 2:43 PM (in response to talgolan)> It appears as though the login information is being
> cached somewhere.
That is correct.
You can flush the cache using a JMX call on the jboss jaas security manager.
If you search this forum, you'll easily find a few code examples of how to achieve that.
Hth
Peter. -
2. Re: DatabaseLogin Authentication Cache Problem
talgolan May 7, 2003 3:14 PM (in response to talgolan)Thank Peter.
I have found the following code snippet in the JBoss Admin Manual (pg. 297)...
MBeanServer server = ...;
String jaasMgrName = "jboss.security:service=JaasSecurityManager";
ObjectName jaasMgr = new ObjectName(jaasMgrName);
Object[] params = {domainName};
String[] signature = {"java.lang.String"};
server.invoke(jaasMgr, "flushAuthenticationCache", params, signature);
However, for the life of me, I cannot figure out...
a) What imports I need to make this work, and
b) What completes line 1 "MBeanServer server = ...;"
Any suggestions? -
3. Re: DatabaseLogin Authentication Cache Problem
shafei May 7, 2003 8:43 PM (in response to talgolan)Try
MBeanServer server = (MBeanServer)
MBeanServerFactory.findMBeanServer(null).get(0);
hth -
4. Re: DatabaseLogin Authentication Cache Problem
talgolan May 8, 2003 10:15 PM (in response to talgolan)Thank you, that did the trick.
Much appreciated.
Tal