-
1. Re: User Cache Refresh
willievu Oct 11, 2001 11:06 AM (in response to adammal)JaasSecurityManager accepts an attribute that gives the JNDI name of a cache policy. That's how you can setup a custom cache policy. However, the attribute is a JNDI name that is used to look up the actual CachePolicy instance. How do you set it up? You'll have to create a MBean and initialize it in jboss.jcml.
-
2. Re: User Cache Refresh
adammal Oct 11, 2001 6:40 PM (in response to adammal)Thanks for replying.
You will have to be more specific though. I am very new to JBoss and have little idea about what the attribute values should be and what the mbean should be declaring.
Do i actually extend the CachePolicy or do something else.
I would appreciate more detail to the response. -
3. Re: User Cache Refresh
starksm64 Oct 14, 2001 11:50 PM (in response to adammal)See the How to Integrate Custom Services via MBeans
in the online docs:
http://www.jboss.org/documentation/HTML/ch13s32.html
You need to bind a subclass of org.jboss.util.CachePolicy into JNDI and then provide its location to the JaasSecurityManagerService MBean via the CachePolicy attribute.
For example, if you bind the CachePolicy into JNDI
under the name "security/MyTimedCachePolicy", you
would setup the JaasSecurityManagerService as follows:
org.jboss.security.plugins.JaasSecurityManager
security/MyTimedCachePolicy
The next JBoss release will provide more control over
the default cache policy behavior. -
4. Re: User Cache Refresh
jwan Aug 19, 2002 4:09 PM (in response to adammal)> See the How to Integrate Custom Services via MBeans
> in the online docs:
>
> http://www.jboss.org/documentation/HTML/ch13s32.html
Do you have a current link? This one is now broken.