This content has been marked as final.
Show 4 replies
-
1. Re: Fine-grained subtree replication
manik May 6, 2009 12:08 PM (in response to vralev)That introduces a lot of app specific knowledge into the cache.
A better approach is to set up different cache instances - perhaps one that uses replication and one that uses distribution, or perhaps both distribution but with different settings such as number of copies maintained.
If using this within a WAR, your application could select which cache to use.
If you are referring to HTTP session replication, keep in mind that this has not been implemented to use Infinispan as yet. But presumably you will be able to specify which cache instance to use for each specific webapp. In fact that may be a good feature request for the next version of JBoss AS that would use Infinispan. -
2. Re: Fine-grained subtree replication
vralev May 6, 2009 1:21 PM (in response to vralev)"manik.surtani@jboss.com" wrote:
If using this within a WAR, your application could select which cache to use.
.
Is this possible now or I need to talk to jb web team about it? -
3. Re: Fine-grained subtree replication
vralev May 6, 2009 4:13 PM (in response to vralev)"manik.surtani@jboss.com" wrote:
That introduces a lot of app specific knowledge into the cache.
Just to make sure I explained correctly what I meant - some clarifications.
The idea is exactly to avoid being aware of app specific data. Simply, instead of one buddy group id use multiple ids. The tags should NOT be interpreted by jb cache in any way, they are just ids. Each cache node would be configured by the deployer or the administrator with:<NodeTags>app1, rarelyUsed, notImportant, generic, monitored, slowNetwork, linux, intercepted, secureNetwork, noWifi</NodeTags>
That tags represent app-specific, network-specific, security-specific, OS-specific, etc, but from cache point of view they are just some admin keywords.
Using different instances of JB cache is fine of course and I am looking into it. -
4. Re: Fine-grained subtree replication
manik May 7, 2009 5:13 AM (in response to vralev)"vladimir.ralev@jboss.com" wrote:
"manik.surtani@jboss.com" wrote:
If using this within a WAR, your application could select which cache to use.
.
Is this possible now or I need to talk to jb web team about it?
What I meant by this has nothing to do with JBoss Web. I was talking about your custom code - which happens to be packaged in a WAR - that creates and starts an Infinispan cluster. Perhaps by starting it as an initializing servlet and then registering in somewhere (JNDI? A dependency injection container?) for other classes in your WAR to consume.