-
1. Re: Local put
manik Apr 3, 2006 11:56 AM (in response to washeeq)Hi there
Yeah thats pretty much what it is used for. If you set this option the replication interceptor will be bypassed. Everything else will function the same.
Cheers,
Manik -
2. Re: Local put
washeeq Apr 4, 2006 6:05 AM (in response to washeeq)Thanks Manik. I'm glad to hear it :-)
-
3. Re: Local put
amalrajvinoth Jul 4, 2011 6:43 AM (in response to manik)Hi Manik,
In Invalidation mode, I want put a entry in local cache alone it should not perfrom on other caches,
How to achieve this?
I didnot find anything like "setCacheModeLocal" as mentioned above.
Where should i use option parameter "setCacheModeLocal"?
I tried setting mode as local at runtime as,
cache.getConfiguration().setCacheMode(CacheMode.LOCAL);
put(fqn,key,value);
but it throws exception as follows:
Exception in thread "main" org.jboss.cache.config.ConfigurationException:
Attempted to modify a non-Dynamic configuration element [cacheMode] after the cache started!
please help me regarding this.
thanks in advance, amal raj.
-
4. Re: Local put
amalrajvinoth Jul 6, 2011 1:45 AM (in response to amalrajvinoth)Yes it working for me by using:
cache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
cache.put(fqn, key, value);
FYI: It applies to put() and remove() only.
thanks, amal raj.