I'll bring up this general topic when we talk Monday AM.
"bstansberry(a)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(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...