I am using JBoss 5.1. I have searched the forum for this problem but could not find any solution. It seems like the stateful session beans do not get removed when the 'removalTimeoutSeconds' time in ejb3-interceptors-aop.xml expires. 'RemoveCount' for the bean is not incremented. Is this a known issue or am I missing some configuration? My understanding is that if the bean is left unused then it should be removed by the container after this time expires.
It seems like enabling NoPassivationCache not only disables the passivation of the bean but also removal of the bean. After removing NoPassivationCache, I see the bean does get removed, however it is not immediately removed as soon as the timeout expires. JBoss removes the bean at leisure! Don't know why.