I wan to check if my stateful bean is passivated/activated and the corresponding callbacks are called properly.
For that I want to configure the containers GlassFish and/or JBOSS to limit the number of instances of the bean.
Is it possible ? If yes, how ?
Thanks for pointing me to the right direction.
For JBOSS, found the annotation org.jboss.ejb3.annotation.CacheConfig with parameters maxSize and idleTimeoutSeconds as parameters.
Here the documentation link for someone searching…
http://www.jboss.org/file-access/default/members/jbossas/freezone/docs/Administration_And_Configuration_Guide/5/html/clustering-session-sfsb30.html
Though, I don’t yet know, how to configure this with xml without using the annotations.