[jboss-user] [JBoss Cache] - Re: Relogin after 30 minutes

Tommy Shum do-not-reply at jboss.com
Thu Apr 7 04:54:36 EDT 2011

Tommy Shum [http://community.jboss.org/people/tommyshum83] created the discussion

"Re: Relogin after 30 minutes"

To view the discussion, visit: http://community.jboss.org/message/598405#598405


I'm having the issue to extend the expiration time. Where is this function (refresh()) located? We can change jboss code?

I found a source in internet to set DefaultCacheTimeout=-1 but it doesn't seem working. Does jboss really support such setting?

 http://sourceforge.net/project/shownotes.php?release_id=337759 http://sourceforge.net/project/shownotes.php?release_id=337759
JBAS-2226, The JaasSecurityManagerService DefaultCacheTimeout attribute as applied to the default JaasSecurityManager timed cache policy entries has a bug which limits the effective maximum timeout to Integer.MAX_VALUE/1000 due to a seconds to milliseconds conversion. Since values in the MAX_VALUE range are typically an attempt to never expire an entry, support for indicating this has been added by interpretting a DefaultCacheTimeout value of -1 to mean no expiration. Previously any negative value was the same as 0, and indicated that no caching would occur. Impact: If your are using a value of -1 to indicate that caching should be disabled, you need to change your configuration value to 0.

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110407/22596018/attachment.html 

More information about the jboss-user mailing list