[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Re: Scoping of FIELD granularity session pojos
jason.greene@jboss.com
do-not-reply at jboss.com
Thu Apr 24 14:25:26 EDT 2008
"bstansberry at jboss.com" wrote :
|
| 1) Store pojos under the session that first passes them to setAttribute.
|
| Pros: solves above problems
|
| Cons: if webapp stores the same pojo under two different sessions, PC will support this. But if the first session is removed, the underlying pojo will be removed with it and if the second session tries to use it they will get an exception.
|
|
Are you just referring to making every session a region? This would still have problems with gravitation, since a shared pojo would either bounce back and forth if we always force gravitation, or if we don't might not be accessable . Unless of course you can gaurantee that all sessions associated with a web app are all located on the same node.
anonymous wrote :
| 2) Make it configurable via a pojo-scope element in jboss-web.xml, valus are APPLICATION or SESSION, default is session.
|
| Basically, still support the existing behavior. Log a WARN if user specifies ATTRIBUTE with a buddy replication cache.
|
IMO if we are going to share pojos and bind them to a special region, then we should make that region not use buddy replication (if possible).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146607#4146607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146607
More information about the jboss-dev-forums
mailing list