JBoss EJB 3.0 第一章 EJB池和缓存
关键字: jboss ejb3
- public @interface CacheConfig{ String name() default "jboss.cache:service=EJB3SFSBClusteredCache"; int maxSize() default 10000; long idleTimeoutSeconds() default 300; long removalTimeoutSeconds() default 0; boolean replicationIsPassivation() default true;}
name()一般不需要修改。
replicationIsPassivation()指定是否在分布式缓存复制和提取前后是否调用@PrePassivate和@PostActivate。
1.2.3 不要钝化
有时候你希望关掉钝化功能,加上@org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.NoPassivationCache.class)