[jboss-dev-forums] [Design of Clustering on JBoss (Clusters/JBoss)] - Re: Scoping of FIELD granularity session pojos

bstansberry@jboss.com do-not-reply at jboss.com
Fri Apr 25 12:40:00 EDT 2008


I'll bring up this general topic when we talk Monday AM.

"bstansberry at jboss.com" wrote : Plus I haven't gotten it work properly yet now that PC no longer does it by default. ;) 

This was fixed yesterday. Gravitating pojos from the shared region now works, for good or ill, as it did in AS 4.  

"bstansberry at jboss.com" wrote : My "Con" above refers to the fact that if people try to share pojos or do it accidentally, we can't detect that right away -- the call to attach() with an fqn for the 2nd session will work and create a PojoReference pointing to the _JBossInternal_ region under the first session. 

Can PC provide some sort of utility method to tell me where the ref to an object is stored? Or something that tells me if a ref to it is stored in a given region? E.g. I would have code like this:


  | Fqn sess2Region = getRegionFqn(sess2);
  | if (PojoCacheUtil.isCachedInOtherRegion(pojo, sess2Region)) {
  |    throw new IllegalStateException("Object " + pojo + " is already stored in another session; sharing objects between sessions is not supported");
  | }
  | 

I could perhaps implement that by looking for a PC interceptor and checking its getFqn() method, but that's a bad idea. :)


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

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



More information about the jboss-dev-forums mailing list