Increase the value of max-bean-life in your configuration. The way the beans are removed is based on this
(max-bean-life) - (max-bean-age)
By default, max-bean-life is 1800(30mins) and max-bean-age is 600(10mins). So if any beans exceeds this, it gets deleted. Look in LRUStatefulcontextcachepolicy.java's run method.
We are having the exact same problem and were originally delighted to see this thread, except - what is the answer?
Surely increasing the suggested value simply means that the bean will disappear at a different time interval?
Raj, would you care to elaborate?
Are there any other errors ? Something like could not passivate or error during passivation ?
Do you have a timeout associated with your sessions? Make sure that your
(max-bean-life - max-age-life) is equivalent to that interval. That case, you should never have this exception as your HTTP sessions should expire that point.
Thanks for the suggestions guys, both relevant.
We have resolved the problem - the scope for the bean in our JSP was "application", we have now changed this to "session" - this was/is a tricky one for us as we slavishly followed the Sun Duke's Bank Application model - our application is under review and the overall design will be modified.