AppFuseOnJBoss |
|
Your trail: |
Difference between
version 6
and
version 5:
At line 52 added 21 lines. |
!!!WARNING: |
|
JBoss holds onto the cache of users and roles. So if you changed a users role, they would not be able to see it for 1/2 an hour. |
|
I subclassed UserManagerImpl, and created a version specific to JBoss, then I changed UserManagerImpl to use a stub method called flushAuthCache. |
|
UserManagerJBossSpecific invalidates the user cache using JMX. JBoss is pretty cool! |
|
Since I am using Spring. I did not have to change any other code in the system. Just one configuration file! |
|
Spring change: |
|
{{{ |
<bean id="userManager" class="org.appfuse.webapp.service.UserManagerJBossSpecific"> |
<property name="userDAO"><ref local="userDAO"/></property> |
</bean> |
}}} |
|
[UserManagerJBossSpecific.java|http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3823134#3823134] |
|
|
Back to AppFuseOnJBoss,
or to the Page History.
|