4 Replies Latest reply on Mar 25, 2011 7:02 AM by Michael Huss

    @CacheConfig, idleTimeout doesn't work

    Michael Huss Newbie

      Hi all,

       

      can anybody help me with the following issue: I'm using JBoss 5.1GA and noticed that a SFSB is always destroyed after 60 seconds.

      A DEBUG trace in org.jboss.ejb3 reveals

       

      2011-03-25 10:15:42,734 DEBUG [org.jboss.ejb3.cache.simple.SimpleStatefulCache.CountBean] (HDScanner) Initializing SimpleStatefulCache with maxSize: 4 timeout: 60 for jboss.j2ee:jar=NameOfJar.jar,name=NameOfBean,service=EJB3

       

      that exactly 60 seconds timeout is used but I don't know why ?

       

      My SFSB is annotated like this

       

      @CacheConfig(maxSize = 4, idleTimeoutSeconds = 3600)

       

      I seems to me that this annotation works correct by using 4 for "maxSize" but ignored "idleTimeoutSeconds" completely ...

      No idea, I googled around about a few hours with no result ... :-(

       

      I found a thread here http://community.jboss.org/message/477777. A similar problem is mentioned ...