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.
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.
See the How to Integrate Custom Services via MBeans
in the online docs:
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:
The next JBoss release will provide more control over
the default cache policy behavior.