I have a requirement in my application that forces me to create eviction
policies to regions once the whole system is running (that is, the cache has
already started and is runnning properly).
What I am triying to do is to configure an eviction policy programatically.
Here is how I am doing it:
I'm confused - how are you creating the eviction region? Isn't this in the XML
config file (or Configuration object), which means the region will be created
when the cache starts up?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149117#4149117
Reply to the
anonymous wrote :
| The only way I see you can solve this is to create a new empty region and
move the nodes from the existing one, so that events are being created and
nodes are being considered for eviction.
|
I thought about that solution too but this would made the nodes to lose their
I've added a post on the design forum:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149030#4149030
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149032#4149032
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&
At the moment that is just not supported. Not sure we even want to support that
as it might create unnecessary complications, but rather not allow creating the
eviction region if the given region is not empty - I'll raise another question
on the design forums on that.
The only way I see you ca