[jboss-dev-forums] [Design of EJB 3.0] - Re: Passivating EJB 3 Stateful Session Beans stops the World

andy.miller@jboss.com do-not-reply at jboss.com
Wed Oct 22 18:22:48 EDT 2008


"bstansberry at jboss.com" wrote : I see it. You are using :
  | 
  | import org.jboss.annotation.ejb.Clustered;
  | 
  | which was removed a long time ago as part of the reorganization of EJB3 annotations; now it is:
  | 
  | import org.jboss.ejb3.annotation.Clustered;

Okay, I rebuilt the application with the AS 5 libraries, and I am no longer getting the SimpleStatefulCache, but instead am getting the StatefulTreeCache.

You cannot configure the StatefulTreeCache (at least I can't see how), so my throughput has now dropped, even though I don't have the hang situation anymore.  The StatefulTreeCache doesn't appear to have a maxSize, and it seems to be limited to 10,000 beans.

So, the question I have, is how do I get it to pick up the EJB3SFSBSClusteredCache.  It appears I would need to add an annotation (@Cache or @CacheConfig), but the documentation for both of these is out-of-date, and the source has no explanation (no javadoc).

Any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184003#4184003

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184003



More information about the jboss-dev-forums mailing list