<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: JBoss Cache and HAPartition, different clusters
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/heineson">Jonas Heineson</a> in <i>JBoss Cache</i> - <a href="http://community.jboss.org/message/587259#587259">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Seems like config disappeared, here it comes:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Configuration HAPartition (cluster-service.xml):</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!-- ===================================================================== --></p><p><!--                                                                       --></p><p><!--  Sample Clustering Service Configuration                              --></p><p><!--                                                                       --></p><p><!-- ===================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><server></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p>   <!-- Cluster Partition: defines cluster                                   --></p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.ha.framework.server.ClusterPartition"</p><p>      name="jboss:service=${jboss.partition.name:DefaultPartition}"></p><p>         </p><p>      <!-- Name of the partition being built --></p><p>      <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The address used to determine the node name --></p><p>      <attribute name="NodeAddress">${jboss.bind.address}</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Determine if deadlock detection is enabled --></p><p>      <attribute name="DeadlockDetection">False</attribute></p><p>     </p><p>      <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states --></p><p>      <attribute name="StateTransferTimeout">30000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- The JGroups protocol configuration --></p><p>      <attribute name="PartitionConfig"></p><p>         <!--</p><p>         The default UDP stack:</p><p>         - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the</p><p>         appropriate NIC IP address, e.g bind_addr="192.168.0.2".</p><p>         - On Windows machines, because of the media sense feature being broken with multicast</p><p>         (even after disabling media sense) set the UDP protocol's loopback attribute to true</p><p>         --></p><p>         <Config></p><p>            <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.5}" mcast_port="45588"</p><p>               ip_ttl="8" ip_mcast="true"</p><p>               mcast_send_buf_size="800000" mcast_recv_buf_size="150000"</p><p>               ucast_send_buf_size="800000" ucast_recv_buf_size="150000"</p><p>               loopback="true"/></p><p>            <PING timeout="2000" num_initial_members="3"</p><p>               up_thread="true" down_thread="true"/></p><p>            <MERGE2 min_interval="10000" max_interval="20000"/></p><p>            <FD shun="true" up_thread="true" down_thread="true"</p><p>               timeout="2500" max_tries="5"/></p><p>            <VERIFY_SUSPECT timeout="3000" num_msgs="3"</p><p>               up_thread="true" down_thread="true"/></p><p>            <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"</p><p>               max_xmit_size="8192"</p><p>               up_thread="true" down_thread="true"/></p><p>            <UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10"</p><p>               down_thread="true"/></p><p>            <pbcast.STABLE desired_avg_gossip="20000"</p><p>               up_thread="true" down_thread="true"/></p><p>            <FRAG frag_size="8192"</p><p>               down_thread="true" up_thread="true"/></p><p>            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"</p><p>               shun="true" print_local_addr="true"/></p><p>            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/></p><p>         </Config></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      </attribute></p><p>      <depends>jboss:service=Naming</depends></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p>   <!-- HA Session State Service for SFSB                                    --></p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.ha.hasessionstate.server.HASessionStateService"</p><p>      name="jboss:service=HASessionState"></p><p>      <depends>jboss:service=Naming</depends></p><p>      <!-- We now inject the partition into the HAJNDI service instead</p><p>           of requiring that the partition name be passed --></p><p>      <depends optional-attribute-name="ClusterPartition"</p><p>         proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends></p><p>      <!-- JNDI name under which the service is bound --></p><p>      <attribute name="JndiName">/HASessionState/Default</attribute></p><p>      <!-- Max delay before cleaning unreclaimed state.</p><p>           Defaults to 30*60*1000 => 30 minutes --></p><p>      <attribute name="BeanCleaningDelay">0</attribute></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p>   <!-- HA JNDI                                                              --></p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.ha.jndi.HANamingService"</p><p>      name="jboss:service=HAJNDI"></p><p>      <!-- We now inject the partition into the HAJNDI service instead</p><p>           of requiring that the partition name be passed --></p><p>      <depends optional-attribute-name="ClusterPartition"</p><p>         proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends></p><p>      <!-- Bind address of bootstrap and HA-JNDI RMI endpoints --></p><p>      <attribute name="BindAddress">${jboss.bind.address}</attribute></p><p>      <!-- Port on which the HA-JNDI stub is made available --></p><p>      <attribute name="Port">1100</attribute></p><p>      <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. --></p><p>      <attribute name="RmiPort">1101</attribute></p><p>      <!-- Accept backlog of the bootstrap socket --></p><p>      <attribute name="Backlog">50</attribute></p><p>      <!-- The thread pool service used to control the bootstrap and</p><p>      auto discovery lookups --></p><p>      <depends optional-attribute-name="LookupPool"</p><p>         proxy-type="attribute">jboss.system:service=ThreadPool</depends></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- A flag to disable the auto discovery via multicast --></p><p>      <attribute name="DiscoveryDisabled">false</attribute></p><p>      <!-- Set the auto-discovery bootstrap multicast bind address. If not </p><p>      specified and a BindAddress is specified, the BindAddress will be used. --></p><p>      <attribute name="AutoDiscoveryBindAddress">${jboss.bind.address}</attribute></p><p>      <!-- Multicast Address and group port used for auto-discovery --></p><p>      <attribute name="AutoDiscoveryAddress">${jboss.partition.udpGroup:230.0.0.4}</attribute></p><p>      <attribute name="AutoDiscoveryGroup">1102</attribute></p><p>      <!-- The TTL (time-to-live) for autodiscovery IP multicast packets --></p><p>      <attribute name="AutoDiscoveryTTL">16</attribute></p><p>      <!-- The load balancing policy for HA-JNDI --></p><p>      <attribute name="LoadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</attribute></p><p>      </p><p>      <!-- Client socket factory to be used for client-server</p><p>           RMI invocations during JNDI queries</p><p>      <attribute name="ClientSocketFactory">custom</attribute></p><p>      --></p><p>      <!-- Server socket factory to be used for client-server</p><p>           RMI invocations during JNDI queries</p><p>      <attribute name="ServerSocketFactory">custom</attribute></p><p>      --></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.invocation.jrmp.server.JRMPInvokerHA"</p><p>      name="jboss:service=invoker,type=jrmpha"></p><p>      <attribute name="ServerAddress">${jboss.bind.address}</attribute></p><p>      <attribute name="RMIObjectPort">4447</attribute></p><p>      <!--</p><p>      <attribute name="RMIClientSocketFactory">custom</attribute></p><p>      <attribute name="RMIServerSocketFactory">custom</attribute></p><p>      --></p><p>      <depends>jboss:service=Naming</depends></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- the JRMPInvokerHA creates a thread per request.  This implementation uses a pool of threads --></p><p>   <mbean code="org.jboss.invocation.pooled.server.PooledInvokerHA"</p><p>      name="jboss:service=invoker,type=pooledha"></p><p>      <attribute name="NumAcceptThreads">1</attribute></p><p>      <attribute name="MaxPoolSize">300</attribute></p><p>      <attribute name="ClientMaxPoolSize">300</attribute></p><p>      <attribute name="SocketTimeout">60000</attribute></p><p>      <attribute name="ServerBindAddress">${jboss.bind.address}</attribute></p><p>      <attribute name="ServerBindPort">4448</attribute></p><p>      <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute></p><p>      <attribute name="ClientConnectPort">0</attribute></p><p>      <attribute name="EnableTcpNoDelay">false</attribute></p><p>      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends></p><p>      <depends>jboss:service=Naming</depends></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p>   <!-- Distributed cache invalidation                                       --></p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.cache.invalidation.bridges.JGCacheInvalidationBridge"</p><p>      name="jboss.cache:service=InvalidationBridge,type=JavaGroups"></p><p>      <!-- We now inject the partition into the HAJNDI service instead</p><p>           of requiring that the partition name be passed --></p><p>      <depends optional-attribute-name="ClusterPartition"</p><p>         proxy-type="attribute">jboss:service=${jboss.partition.name:DefaultPartition}</depends></p><p>      <depends>jboss.cache:service=InvalidationManager</depends></p><p>      <attribute name="InvalidationManager">jboss.cache:service=InvalidationManager</attribute></p><p>      <attribute name="BridgeName">DefaultJGBridge</attribute></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></server></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Configuration JBoss Cache (pojocache-service.xml)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><!-- ===================================================================== --></p><p><!--                                                                       --></p><p><!--  Sample PojoCache Service Configuration                               --></p><p><!--                                                                       --></p><p><!-- ===================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><server></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- Used inside JBoss AS --></p><p>   <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <!-- ==================================================================== --></p><p>   <!-- Defines configuration                                                --></p><p>   <!-- ==================================================================== --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>   <mbean code="org.jboss.cache.aop.PojoCache"</p><p>          name="jboss.cache:service=PojoCache"></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Used inside JBoss AS --></p><p>      <depends>jboss:service=Naming</depends></p><p>      <depends>jboss:service=TransactionManager</depends></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>          Configure the TransactionManager</p><p>      --></p><p>      <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>          Node locking scheme:</p><p>              OPTIMISTIC</p><p>              PESSIMISTIC (default)</p><p>      --></p><p>      <attribute name="NodeLockingScheme">PESSIMISTIC</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>          Note that this attribute is IGNORED if your NodeLockingScheme above is OPTIMISTIC.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          Isolation level : SERIALIZABLE</p><p>                            REPEATABLE_READ (default)</p><p>                            READ_COMMITTED</p><p>                            READ_UNCOMMITTED</p><p>                            NONE</p><p>      --></p><p>      <attribute name="IsolationLevel">REPEATABLE_READ</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>           Valid modes are LOCAL</p><p>                           REPL_ASYNC</p><p>                           REPL_SYNC</p><p>                           INVALIDATION_ASYNC</p><p>                           INVALIDATION_SYNC</p><p>      --></p><p>      <attribute name="CacheMode">REPL_SYNC</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Name of cluster. Needs to be the same for all clusters, in order</p><p>           to find each other</p><p>      --></p><p>      <attribute name="ClusterName">${jboss.cache.cluster.name:Default-Cache-Cluster}</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- JGroups protocol stack properties. Can also be a URL,</p><p>           e.g. file:/home/bela/default.xml</p><p>         <attribute name="ClusterProperties"></attribute></p><p>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <attribute name="ClusterConfig"></p><p>         <config></p><p>            <!-- UDP: if you have a multihomed machine,</p><p>  set the bind_addr attribute to the appropriate NIC IP address --></p><p>            <!-- UDP: On Windows machines, because of the media sense feature</p><p>      being broken with multicast (even after disabling media sense)</p><p>      set the loopback attribute to true --></p><p>            <UDP mcast_addr="${jboss.cache.udpGroup:228.1.2.5}" mcast_port="45577"</p><p>                 ip_ttl="64" ip_mcast="true"</p><p>                 mcast_send_buf_size="150000" mcast_recv_buf_size="80000"</p><p>                 ucast_send_buf_size="150000" ucast_recv_buf_size="80000"</p><p>                 loopback="false"/></p><p>            <PING timeout="2000" num_initial_members="3"</p><p>                  up_thread="false" down_thread="false"/></p><p>            <MERGE2 min_interval="10000" max_interval="20000"/></p><p>            <FD shun="true" up_thread="true" down_thread="true"/></p><p>            <VERIFY_SUSPECT timeout="1500"</p><p>                            up_thread="false" down_thread="false"/></p><p>            <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"</p><p>                           up_thread="false" down_thread="false"/></p><p>            <pbcast.STABLE desired_avg_gossip="20000"</p><p>                           up_thread="false" down_thread="false"/></p><p>            <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"</p><p>                     down_thread="false"/></p><p>            <FRAG frag_size="8192"</p><p>                  down_thread="false" up_thread="false"/></p><p>            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"</p><p>                        shun="true" print_local_addr="true"/></p><p>            <pbcast.STATE_TRANSFER up_thread="false" down_thread="false"/></p><p>         </config></p><p>      </attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>          The max amount of time (in milliseconds) we wait until the</p><p>          initial state (ie. the contents of the cache) are retrieved from</p><p>          existing members in a clustered environment</p><p>      --></p><p>      <attribute name="InitialStateRetrievalTimeout">20000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>          Number of milliseconds to wait until all responses for a</p><p>          synchronous call have been received.</p><p>      --></p><p>      <attribute name="SyncReplTimeout">15000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Max number of milliseconds to wait for a lock acquisition --></p><p>      <attribute name="LockAcquisitionTimeout">10000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!--</p><p>      <attribute name="EvictionPolicyClass"></attribute></p><p>      --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Name of the eviction policy class. We have commented it off to disable eviction.</p><p>      --></p><p>      <attribute name="EvictionPolicyClass">org.jboss.cache.aop.eviction.AopLRUPolicy</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- Specific eviction policy configurations. This is LRU --></p><p>      <attribute name="EvictionPolicyConfig"></p><p>         <config></p><p>            <attribute name="wakeUpIntervalSeconds">5</attribute></p><p>            <!-- Cache wide default --></p><p>            <region name="/_default_"></p><p>               <attribute name="maxNodes">5000</attribute></p><p>               <attribute name="timeToLiveSeconds">1000</attribute></p><p>            </region></p><p>            <region name="/aop"></p><p>                <attribute name="maxNodes">5</attribute></p><p>                <attribute name="timeToLiveSeconds">4</attribute></p><p>            </region></p><p>            <region name="/pojo"></p><p>                <attribute name="maxNodes">100</attribute></p><p>                <attribute name="timeToLiveSeconds">4</attribute></p><p>            </region></p><p>            <region name="/testMaxNode"></p><p>                <attribute name="maxNodes">4</attribute></p><p>                <attribute name="timeToLiveSeconds">100</attribute></p><p>            </region></p><p>         </config></p><p>      </attribute></p><p>   </mbean></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></server></p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/587259#587259">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Cache at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>