One gotcha I came across was configuring passivation parameters in lab 5 of Chapter 2. There does not appear a way to do this in the administrator console. Instead you use the JBoss specific CacheConfig annotation in your stateful session bean as follows:
@Stateful
@CacheConfig(maxSize=2, idleTimeoutSeconds=15) // JBoss specific annotation
public class ShoppingCartBean implements ShoppingCart {
The default values are
Alternatively you can edit the ejb3-interceptors-aop.xml file in JBOSS_HOME/server/default/deploy directory. This will apply to all stateful session beans in the deployment.
Comments
You can follow this conversation by subscribing to the comment feed for this post.