Another thing we need is equiv of the
o.j.c.eviction.RegionManager.markNodeCurrentlyInUse()/unmarkNodeCurrentl
yInUse() calls exposed in o.j.c.Region.
Brian Stansberry wrote:
Hey Manik,
I know you were planning on working with integrating the
eviction and marshalling regions this week. Here's some
input based on stuff I'm doing on converting the EJB3 code to use the
2.0 API.
1) Once I call Cache.getRegion(fqn, true) I've created a
Region, but I'm not sure how to set it up programatically to
do eviction. Passing a config to setEvictionPolicyConfig()
seems obvious. But would that be enough to get the eviction
policy created? Or should I then call activate()? The
javadoc implies that activate() pertains to marshalling, but
does it make sense to make it apply to eviction as well -- a
sort of general purpose start() method?
2) Conversely, how to remove a region when an SFSB is
undeployed? There's no Cache.removeRegion(Fqn). There is a
deactivate() method.
I realize this stuff may not be implemented; I'm more
concerned with understanding the API.
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
Ph: 510-396-3864
skype: bstansberry