4 Replies Latest reply on Aug 19, 2002 4:09 PM by jwan

    User Cache Refresh

    adammal

      I would appreciate if anyone can inform me of how to set the Timed Cache lower when using DatabaseServerLoginModule.

      It's currently updating the cache every 30mins.

      Thanks, Adam

        • 1. Re: User Cache Refresh
          willievu

          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

            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

              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

                > 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.