[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-16 Thread aman21cent
Thank you. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4225954#4225954 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4225954 ___ jboss-user mailing list

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-15 Thread aman21cent
Could you please verify below steps on how this will be working - Region X - needs to be replicated Region Y - doesn't need to be replicated Thread # 1 - Writes/puts into Region X in below steps a. Writes/puts into Region X Thread # 2 - Writes into Region Y at exact same time as Thread # 1

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-15 Thread bstansbe...@jboss.com
Correct. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4225661#4225661 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4225661 ___ jboss-user mailing list jboss-user@lists.jboss.org

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-14 Thread aman21cent
Thanks for your feedback. Another question - is it possible to do replication at region level? Region X - Turn ON replication Region Y - Turn OFF replication, which means keep the cache on local server only. View the original post :

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-14 Thread bstansbe...@jboss.com
Not via configuration. The application could use the JBC Option API and setCacheModeLocal(true) before any writes to the region. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4225389#4225389 Reply to the post :

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-14 Thread aman21cent
Yes, but this won't work in case of multi threaded environment. Thread # 1 - Writes into Region X Thread # 2 - Writes into Region Y at exact same time as Thread # 1 If cache mode set to local then both Region X Y will not be replicated. Is this true? View the original post :

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-14 Thread bstansbe...@jboss.com
That won't be a problem; the option is scoped to the calling thread. It's stored in a ThreadLocal and is cleared when the next call to the cache after it's set returns. Admittedly, it's a clunky API. In JBC 1.x the Option was passed as a method param in an overloaded method, which was more

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-13 Thread bstansbe...@jboss.com
You can't configure different cache loaders for different regions. Do you want to configure the cache loader for passivation? If so, you can just configure the FileCacheLoader for everything and only evict from certain regions. View the original post :

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-13 Thread aman21cent
My actual goal is to use 2 different cache loaders for 2 different regions like below - Region /user/data/X - use JDBCCacheLoader Region /user/data/Y - use - FileCacheLoader I will use passivation eviction on both regions but how can I use different loaders on individual regions? View the

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-13 Thread aman21cent
I can run 2 sets of JBoss cache instance... providing two configuration filesbut I am trying to avoid it. Can I configure region based cache loaders run single instance of JBOSS cache? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4225195#4225195 Reply

[jboss-user] [Clustering/JBoss] - Re: How to configure region based caching use multiple cac

2009-04-13 Thread bstansbe...@jboss.com
I don't think you can. You can try posting on the JBoss Cache user forum and see if someone has a clever suggestion. Only thing that comes to mind for me is subclassing JDBCCacheLoader and FileCacheLoader such that they take a configuration attribute that defines the region they apply to. Then