<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi all,<br>
<br>
right on the heels of my previous e-mail related to declarative
configuration of XSite in Infinispan, I also would like to tackle
the issue of how we are going to translate it to the configuration
dialect in AS7/EAP/JDG.<br>
<br>
Here's my rough concept:<br>
<br>
add the local site name to the <cache-container /> element<br>
<br>
<font face="Courier New, Courier, monospace"><cache-container
name="maximal" aliases="alias1 alias2" default-cache="local"
eviction-executor="infinispan-eviction"
jndi-name="java:global/infinispan/maximal"
listener-executor="infinispan-listener"
replication-queue-executor="infinispan-repl-queue"
module="org.infinispan" <br>
local-site="LON"></font><br>
<br>
add the backups element as a child of the cache:<br>
<br>
<font face="Courier New, Courier, monospace"><local-cache
name="local"><br>
<backups><br>
<backup site="NYC" failure-policy="WARN"
strategy="SYNC" timeout="12000" enabled="true"/><br>
<backup site="SFO" failure-policy="IGNORE"
strategy="ASYNC" enabled="true"/><br>
<backup site="LON" strategy="SYNC"
enabled="false"/><br>
</backups><br>
<backup-for remote-cache="remoteCache" remote-site="NYC"
/><br>
</local-cache></font><br>
<br>
Since the JGroups config already allows multiple stacks, I suggest
adding the relay element as a child of the <stack /> element
allowing it to reference other stacks:<br>
<br>
<font face="Courier New, Courier, monospace"><stack
name="bridge"><br>
<transport type="TCP" socket-binding="jgroups-bridge-tcp"
/><br>
</stack><br>
<br>
<stack name="xsite"><br>
<transport type="TCP" socket-binding="jgroups-tcp" /><br>
<protocol ... /><br>
<relay type="relay.RELAY2"><br>
<site name="LON" id="0"><br>
<bridges><br>
<bridge name="global" </font><font
face="Courier New, Courier, monospace"><font face="Courier New,
Courier, monospace">stack="bridge" </font>/><br>
</bridges><br>
</site><br>
<site name="NYC" id="1"><br>
<bridges><br>
<bridge name="global" </font><font
face="Courier New, Courier, monospace"><font face="Courier New,
Courier, monospace">stack="bridge" </font>/><br>
</bridges><br>
</site><br>
<site name="SFO" id="2"><br>
<bridges><br>
<bridge name="global" stack="bridge"/><br>
</bridges><br>
</site><br>
</relay><br>
</stack></font><br>
<br>
Comments ?<br>
<br>
Tristan<br>
</body>
</html>