-
1. @CacheConfig, idleTimeout doesn't work
jaikiran Mar 25, 2011 5:54 AM (in response to mikes74)What's the full package name of the @CacheConfig that you are using? It should be @org.jboss.ejb3.annotation.CacheConfig.
-
2. @CacheConfig, idleTimeout doesn't work
mikes74 Mar 25, 2011 5:59 AM (in response to jaikiran)Thanks for beeing so fast, so it is -> full name is "org.jboss.ejb3.annotation.CacheConfig"
-
3. @CacheConfig, idleTimeout doesn't work
jaikiran Mar 25, 2011 6:07 AM (in response to mikes74)Try changing this:
@CacheConfig(maxSize = 4, idleTimeoutSeconds = 3600)
to
@CacheConfig(maxSize = 4, idleTimeoutSeconds = 60)
and tells us what you see in the logs. I am suspecting a bug here.
-
4. @CacheConfig, idleTimeout doesn't work
mikes74 Mar 25, 2011 7:02 AM (in response to jaikiran)Sorry Jaikiran for wasting your time, I solved the problem myself and found in a JAR a plain old XML jboss.xml:
<session>
<ejb-name>NameOfBean</ejb-name>
<cache-config>
<idle-timeout-seconds>60</idle-timeout-seconds>
<remove-timeout-seconds>30</remove-timeout-seconds>
</cache-config>
</session>
This overrides my annotation and I'm happy :-)
Michael