[seam-commits] Seam SVN: r12668 - in branches/enterprise/JBPAPP_5_0/examples: blog/resources and 8 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Apr 30 12:11:03 EDT 2010


Author: manaRH
Date: 2010-04-30 12:11:01 -0400 (Fri, 30 Apr 2010)
New Revision: 12668

Added:
   branches/enterprise/JBPAPP_5_0/examples/blog/resources/META-INF/cache-configuration.xml
   branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/META-INF/cache-configuration.xml
   branches/enterprise/JBPAPP_5_0/examples/ui/resources/META-INF/cache-configuration.xml
Removed:
   branches/enterprise/JBPAPP_5_0/examples/blog/resources/treecache.xml
   branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/treecache.xml
   branches/enterprise/JBPAPP_5_0/examples/ui/resources/treecache.xml
Modified:
   branches/enterprise/JBPAPP_5_0/examples/blog/resources/WEB-INF/components.xml
   branches/enterprise/JBPAPP_5_0/examples/build.xml
   branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/WEB-INF/components.xml
   branches/enterprise/JBPAPP_5_0/examples/ui/resources/WEB-INF/components.xml
Log:
JBPAPP-4129 - configured blog, ui and chatroom examples with jbosscache-core.jar

Added: branches/enterprise/JBPAPP_5_0/examples/blog/resources/META-INF/cache-configuration.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/blog/resources/META-INF/cache-configuration.xml	                        (rev 0)
+++ branches/enterprise/JBPAPP_5_0/examples/blog/resources/META-INF/cache-configuration.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
+
+
+   <!--
+      isolation levels supported: READ_COMMITTED and REPEATABLE_READ
+      nodeLockingSchemes: mvcc, pessimistic (deprecated), optimistic (deprecated)
+   -->
+   <locking
+         isolationLevel="REPEATABLE_READ"
+         lockParentForChildInsertRemove="false"
+         lockAcquisitionTimeout="20000"
+         nodeLockingScheme="mvcc"
+         writeSkewCheck="false"
+         concurrencyLevel="500"/>
+
+   <!--
+      Used to register a transaction manager and participate in ongoing transactions.
+      -->
+   <transaction
+         transactionManagerLookupClass="org.jboss.cache.transaction.JBossTransactionManagerLookup"
+         syncRollbackPhase="false"
+         syncCommitPhase="false"/>
+
+   <!--
+      Used to register JMX statistics in any available MBean server
+      -->
+   <jmxStatistics
+         enabled="false"/>
+
+   <!--
+      If region based marshalling is used, defines whether new regions are inactive on startup.
+   -->
+   <startup
+         regionsInactiveOnStartup="true"/>
+
+   <!--
+      Used to register JVM shutdown hooks.
+      hookBehavior: DEFAULT, REGISTER, DONT_REGISTER
+   -->
+   <shutdown
+         hookBehavior="DEFAULT"/>
+
+   <!--
+      Used to define async listener notification thread pool size
+   -->
+   <listeners
+         asyncPoolSize="1"
+         asyncQueueSize="1000000"/>
+
+   <!--
+      Used to enable invocation batching and allow the use of Cache.startBatch()/endBatch() methods.
+   -->
+   <invocationBatching
+         enabled="false"/>
+
+   <!--
+      serialization related configuration, used for replication and cache loading
+   -->
+<!-- <serialization
+         objectInputStreamPoolSize="12"
+         objectOutputStreamPoolSize="14"
+         version="3.0.0"
+         marshallerClass="org.jboss.cache.marshall.VersionAwareMarshaller"
+         useLazyDeserialization="false"
+         useRegionBasedMarshalling="false"/> -->   
+
+   <!--
+      This element specifies that the cache is clustered.
+      modes supported: replication (r) or invalidation (i).
+   -->
+   <clustering mode="replication" clusterName="JBossCache-cluster">
+
+      <!--
+         Defines whether to retrieve state on startup
+      -->
+      <stateRetrieval timeout="20000" fetchInMemoryState="false"/>
+
+      <!--
+         Network calls are synchronous.
+      -->
+      <sync replTimeout="20000"/>
+      <!--
+         Uncomment this for async replication.
+      -->
+      <!--<async useReplQueue="true" replQueueInterval="10000" replQueueMaxElements="500" serializationExecutorPoolSize="20" serializationExecutorQueueSize="5000000"/>-->
+
+
+      <!--
+         Configures the JGroups channel.  Looks up a JGroups config file on the classpath or filesystem.  udp.xml
+         ships with jgroups.jar and will be picked up by the class loader.
+      -->
+      <jgroupsConfig>
+
+         <UDP discard_incompatible_packets="true" enable_bundling="false" enable_diagnostics="false" ip_ttl="2"
+              loopback="false" max_bundle_size="64000" max_bundle_timeout="30" mcast_addr="228.10.10.10"
+              mcast_port="45588" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+              oob_thread_pool.enabled="true" oob_thread_pool.keep_alive_time="10000" oob_thread_pool.max_threads="4"
+              oob_thread_pool.min_threads="1" oob_thread_pool.queue_enabled="true" oob_thread_pool.queue_max_size="10"
+              oob_thread_pool.rejection_policy="Run" thread_naming_pattern="pl" thread_pool.enabled="true"
+              thread_pool.keep_alive_time="30000" thread_pool.max_threads="25" thread_pool.min_threads="1"
+              thread_pool.queue_enabled="true" thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run"
+              tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" use_concurrent_stack="true"
+              use_incoming_packet_handler="true"/>
+         <PING num_initial_members="3" timeout="2000"/>
+         <MERGE2 max_interval="30000" min_interval="10000"/>
+         <FD_SOCK/>
+         <FD max_tries="5" shun="true" timeout="10000"/>
+         <VERIFY_SUSPECT timeout="1500"/>
+         <pbcast.NAKACK discard_delivered_msgs="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
+                        use_mcast_xmit="false"/>
+         <UNICAST timeout="300,600,1200,2400,3600"/>
+         <pbcast.STABLE desired_avg_gossip="50000" max_bytes="400000" stability_delay="1000"/>
+         <pbcast.GMS join_timeout="5000" print_local_addr="true" shun="false" view_ack_collection_timeout="5000"
+                     view_bundling="true"/>
+         <FRAG2 frag_size="60000"/>
+         <pbcast.STREAMING_STATE_TRANSFER/>
+         <pbcast.FLUSH timeout="0"/>
+
+      </jgroupsConfig>
+   </clustering>
+
+   <!--
+      Cache loaders.
+
+      If passivation is enabled, state is offloaded to the cache loaders ONLY when evicted.  Similarly, when the state
+      is accessed again, it is removed from the cache loader and loaded into memory.
+
+      Otherwise, state is always maintained in the cache loader as well as in memory.
+
+      Set 'shared' to true if all instances in the cluster use the same cache loader instance, e.g., are talking to the
+      same database.
+   -->
+  <!--  <loaders passivation="false" shared="false">
+      <preload>
+         <node fqn="/org/jboss"/>
+         <node fqn="/org/tempdata"/>
+      </preload> -->
+
+      <!--
+         we can have multiple cache loaders, which get chained
+      -->
+     <!-- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="true" fetchPersistentState="true"
+              ignoreModifications="true" purgeOnStartup="true">
+
+         <properties>
+            cache.jdbc.table.name=jbosscache
+            cache.jdbc.table.create=true
+            cache.jdbc.table.drop=true
+            cache.jdbc.table.primarykey=jbosscache_pk
+            cache.jdbc.fqn.column=fqn
+            cache.jdbc.fqn.type=varchar(255)
+            cache.jdbc.node.column=node
+            cache.jdbc.node.type=blob
+            cache.jdbc.parent.column=parent
+            cache.jdbc.sql-concat=1 || 2
+            cache.jdbc.driver = org.apache.derby.jdbc.EmbeddedDriver
+            cache.jdbc.url=jdbc:derby:jbossdb;create=true
+            cache.jdbc.user=user1
+            cache.jdbc.password=user1
+         </properties>  --> 
+         <!-- alternatively use a connection from a datasorce, as per the code sample below-->
+         <!--<properties>-->
+         <!--cache.jdbc.datasource=AllSampleDS-->
+         <!--cache.jdbc.table.name=jbosscache-->
+         <!--cache.jdbc.table.create=true-->
+         <!--cache.jdbc.table.drop=true-->
+         <!--</properties>-->
+         <!-- <singletonStore enabled="true" class="org.jboss.cache.loader.SingletonStoreCacheLoader">
+            <properties>
+               pushStateWhenCoordinator=true
+               pushStateWhenCoordinatorTimeout=20000
+            </properties>
+         </singletonStore>
+      </loader>
+   </loaders> -->
+ 
+   <!--
+      Define custom interceptors.  All custom interceptors need to extend org.jboss.cache.interceptors.base.CommandInterceptor
+   -->
+   <!--
+   <customInterceptors>
+      <interceptor position="first" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor">
+         <property name="attrOne" value="value1" />
+         <property name="attrTwo" value="value2" />
+      </interceptor>
+      <interceptor position="last" class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor index="3" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+      <interceptor before="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor after="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+   </customInterceptors>
+   -->
+</jbosscache>

Modified: branches/enterprise/JBPAPP_5_0/examples/blog/resources/WEB-INF/components.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/blog/resources/WEB-INF/components.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/blog/resources/WEB-INF/components.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -30,6 +30,8 @@
         </theme:available-themes>
     </theme:theme-selector>
         
+    <cache:jboss-cache3-provider auto-create="true" configuration="META-INF/cache-configuration.xml" />
+    
     <persistence:managed-persistence-context auto-create="true" name="entityManager">
         <persistence:persistence-unit-jndi-name>java:/blogEntityManagerFactory</persistence:persistence-unit-jndi-name>
     </persistence:managed-persistence-context>

Deleted: branches/enterprise/JBPAPP_5_0/examples/blog/resources/treecache.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/blog/resources/treecache.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/blog/resources/treecache.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  Sample TreeCache Service Configuration                               -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<server>
-
-    <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
-
-
-    <!-- ==================================================================== -->
-    <!-- Defines TreeCache configuration                                      -->
-    <!-- ==================================================================== -->
-
-    <mbean code="org.jboss.cache.TreeCache"
-        name="jboss.cache:service=TreeCache">
-
-        <depends>jboss:service=Naming</depends>
-        <depends>jboss:service=TransactionManager</depends>
-
-        <!--
-        Configure the TransactionManager
-    -->
-        <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
-
-        <!--
-            Isolation level : SERIALIZABLE
-                              REPEATABLE_READ (default)
-                              READ_COMMITTED
-                              READ_UNCOMMITTED
-                              NONE
-        -->
-        <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
-
-        <!--
-             Valid modes are LOCAL
-                             REPL_ASYNC
-                             REPL_SYNC
-                             INVALIDATION_ASYNC
-                             INVALIDATION_SYNC
-        -->
-        <attribute name="CacheMode">LOCAL</attribute>
-
-        <!--
-        Just used for async repl: use a replication queue
-        -->
-        <attribute name="UseReplQueue">false</attribute>
-
-        <!--
-            Replication interval for replication queue (in ms)
-        -->
-        <attribute name="ReplQueueInterval">0</attribute>
-
-        <!--
-            Max number of elements which trigger replication
-        -->
-        <attribute name="ReplQueueMaxElements">0</attribute>
-
-        <!-- Name of cluster. Needs to be the same for all clusters, in order
-             to find each other
-        -->
-        <attribute name="ClusterName">TreeCache-Cluster</attribute>
-
-        <!-- JGroups protocol stack properties. Can also be a URL,
-             e.g. file:/home/bela/default.xml
-           <attribute name="ClusterProperties"></attribute>
-        -->
-
-        <attribute name="ClusterConfig">
-            <config>
-                <!-- UDP: if you have a multihomed machine,
-                set the bind_addr attribute to the appropriate NIC IP address -->
-                <!-- UDP: On Windows machines, because of the media sense feature
-                 being broken with multicast (even after disabling media sense)
-                 set the loopback attribute to true -->
-                <UDP mcast_addr="228.1.2.3" mcast_port="48866"
-                    ip_ttl="64" ip_mcast="true" 
-                    mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
-                    ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
-                    loopback="false"/>
-                <PING timeout="2000" num_initial_members="3"
-                    up_thread="false" down_thread="false"/>
-                <MERGE2 min_interval="10000" max_interval="20000"/>
-                <!--        <FD shun="true" up_thread="true" down_thread="true" />-->
-                <FD_SOCK/>
-                <VERIFY_SUSPECT timeout="1500"
-                    up_thread="false" down_thread="false"/>
-                <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
-                    max_xmit_size="8192" up_thread="false" down_thread="false"/>
-                <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
-                    down_thread="false"/>
-                <pbcast.STABLE desired_avg_gossip="20000"
-                    up_thread="false" down_thread="false"/>
-                <FRAG frag_size="8192"
-                    down_thread="false" up_thread="false"/>
-                <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
-                    shun="true" print_local_addr="true"/>
-                <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
-            </config>
-        </attribute>
-
-        <!--
-         Whether or not to fetch state on joining a cluster
-         NOTE this used to be called FetchStateOnStartup and has been renamed to be more descriptive.
-        -->
-        <attribute name="FetchInMemoryState">true</attribute>
-
-        <!--
-            The max amount of time (in milliseconds) we wait until the
-            initial state (ie. the contents of the cache) are retrieved from
-            existing members in a clustered environment
-        -->
-        <attribute name="InitialStateRetrievalTimeout">20000</attribute>
-
-        <!--
-            Number of milliseconds to wait until all responses for a
-            synchronous call have been received.
-        -->
-        <attribute name="SyncReplTimeout">20000</attribute>
-
-        <!-- Max number of milliseconds to wait for a lock acquisition -->
-        <attribute name="LockAcquisitionTimeout">15000</attribute>
-
-
-        <!-- Name of the eviction policy class. -->
-        <attribute name="EvictionPolicyClass"></attribute>
-       
-       <!--
-          Indicate whether to use marshalling or not. Set this to true if you are running under a scoped
-          class loader, e.g., inside an application server. Default is "false".
-       -->
-        <attribute name="UseMarshalling">false</attribute>
-
-    </mbean>
-
-
-   <!--  Uncomment to get a graphical view of the TreeCache MBean above -->
-   <!--   <mbean code="org.jboss.cache.TreeCacheView" name="jboss.cache:service=TreeCacheView">-->
-   <!--      <depends>jboss.cache:service=TreeCache</depends>-->
-   <!--      <attribute name="CacheService">jboss.cache:service=TreeCache</attribute>-->
-   <!--   </mbean>-->
-
-
-</server>

Modified: branches/enterprise/JBPAPP_5_0/examples/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/build.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/build.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -262,7 +262,7 @@
 
 	<!-- Dependencies for using Seam with JBoss Cache (s:cache) -->
 	<fileset id="cache.jar" dir="${lib.dir}">
-		<include name="jboss-cache.jar" if="cache.lib" />
+		<include name="jbosscache-core.jar" if="cache.lib" />
 		<include name="jboss-aop.jar" if="cache.lib" />
 		<include name="jgroups.jar" if="cache.lib" />
 	</fileset>
@@ -404,7 +404,7 @@
 	<!-- resources to go in the jar for jbosswar  -->
 	<fileset id="noejb.jar.resources" dir="${resources.dir}">
 		<include name="${example.ds}" />
-		<include name="treecache.xml" />
+	    <include name="META-INF/cache-configuration.xml" />
 		<include name="*.jpdl.xml" />
 		<include name="jbpm.cfg.xml" />
 		<include name="hibernate.cfg.xml" />
@@ -418,7 +418,7 @@
 		<include name="META-INF/jboss-structure.xml" />
 		<include name="META-INF/*-service.xml" />
 		<include name="META-INF/*-xmbean.xml" />
-		<include name="treecache.xml" />
+	   	<include name="META-INF/cache-configuration.xml" />
 		<include name="*.jpdl.xml" />
 		<exclude name=".gpd.*" />
 		<include name="*.cfg.xml" />

Added: branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/META-INF/cache-configuration.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/META-INF/cache-configuration.xml	                        (rev 0)
+++ branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/META-INF/cache-configuration.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
+
+
+   <!--
+      isolation levels supported: READ_COMMITTED and REPEATABLE_READ
+      nodeLockingSchemes: mvcc, pessimistic (deprecated), optimistic (deprecated)
+   -->
+   <locking
+         isolationLevel="REPEATABLE_READ"
+         lockParentForChildInsertRemove="false"
+         lockAcquisitionTimeout="20000"
+         nodeLockingScheme="mvcc"
+         writeSkewCheck="false"
+         concurrencyLevel="500"/>
+
+   <!--
+      Used to register a transaction manager and participate in ongoing transactions.
+      -->
+   <transaction
+         transactionManagerLookupClass="org.jboss.cache.transaction.JBossTransactionManagerLookup"
+         syncRollbackPhase="false"
+         syncCommitPhase="false"/>
+
+   <!--
+      Used to register JMX statistics in any available MBean server
+      -->
+   <jmxStatistics
+         enabled="false"/>
+
+   <!--
+      If region based marshalling is used, defines whether new regions are inactive on startup.
+   -->
+   <startup
+         regionsInactiveOnStartup="true"/>
+
+   <!--
+      Used to register JVM shutdown hooks.
+      hookBehavior: DEFAULT, REGISTER, DONT_REGISTER
+   -->
+   <shutdown
+         hookBehavior="DEFAULT"/>
+
+   <!--
+      Used to define async listener notification thread pool size
+   -->
+   <listeners
+         asyncPoolSize="1"
+         asyncQueueSize="1000000"/>
+
+   <!--
+      Used to enable invocation batching and allow the use of Cache.startBatch()/endBatch() methods.
+   -->
+   <invocationBatching
+         enabled="false"/>
+
+   <!--
+      serialization related configuration, used for replication and cache loading
+   -->
+<!-- <serialization
+         objectInputStreamPoolSize="12"
+         objectOutputStreamPoolSize="14"
+         version="3.0.0"
+         marshallerClass="org.jboss.cache.marshall.VersionAwareMarshaller"
+         useLazyDeserialization="false"
+         useRegionBasedMarshalling="false"/> -->   
+
+   <!--
+      This element specifies that the cache is clustered.
+      modes supported: replication (r) or invalidation (i).
+   -->
+   <clustering mode="replication" clusterName="JBossCache-cluster">
+
+      <!--
+         Defines whether to retrieve state on startup
+      -->
+      <stateRetrieval timeout="20000" fetchInMemoryState="false"/>
+
+      <!--
+         Network calls are synchronous.
+      -->
+      <sync replTimeout="20000"/>
+      <!--
+         Uncomment this for async replication.
+      -->
+      <!--<async useReplQueue="true" replQueueInterval="10000" replQueueMaxElements="500" serializationExecutorPoolSize="20" serializationExecutorQueueSize="5000000"/>-->
+
+
+      <!--
+         Configures the JGroups channel.  Looks up a JGroups config file on the classpath or filesystem.  udp.xml
+         ships with jgroups.jar and will be picked up by the class loader.
+      -->
+      <jgroupsConfig>
+
+         <UDP discard_incompatible_packets="true" enable_bundling="false" enable_diagnostics="false" ip_ttl="2"
+              loopback="false" max_bundle_size="64000" max_bundle_timeout="30" mcast_addr="228.10.10.10"
+              mcast_port="45588" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+              oob_thread_pool.enabled="true" oob_thread_pool.keep_alive_time="10000" oob_thread_pool.max_threads="4"
+              oob_thread_pool.min_threads="1" oob_thread_pool.queue_enabled="true" oob_thread_pool.queue_max_size="10"
+              oob_thread_pool.rejection_policy="Run" thread_naming_pattern="pl" thread_pool.enabled="true"
+              thread_pool.keep_alive_time="30000" thread_pool.max_threads="25" thread_pool.min_threads="1"
+              thread_pool.queue_enabled="true" thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run"
+              tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" use_concurrent_stack="true"
+              use_incoming_packet_handler="true"/>
+         <PING num_initial_members="3" timeout="2000"/>
+         <MERGE2 max_interval="30000" min_interval="10000"/>
+         <FD_SOCK/>
+         <FD max_tries="5" shun="true" timeout="10000"/>
+         <VERIFY_SUSPECT timeout="1500"/>
+         <pbcast.NAKACK discard_delivered_msgs="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
+                        use_mcast_xmit="false"/>
+         <UNICAST timeout="300,600,1200,2400,3600"/>
+         <pbcast.STABLE desired_avg_gossip="50000" max_bytes="400000" stability_delay="1000"/>
+         <pbcast.GMS join_timeout="5000" print_local_addr="true" shun="false" view_ack_collection_timeout="5000"
+                     view_bundling="true"/>
+         <FRAG2 frag_size="60000"/>
+         <pbcast.STREAMING_STATE_TRANSFER/>
+         <pbcast.FLUSH timeout="0"/>
+
+      </jgroupsConfig>
+   </clustering>
+
+   <!--
+      Cache loaders.
+
+      If passivation is enabled, state is offloaded to the cache loaders ONLY when evicted.  Similarly, when the state
+      is accessed again, it is removed from the cache loader and loaded into memory.
+
+      Otherwise, state is always maintained in the cache loader as well as in memory.
+
+      Set 'shared' to true if all instances in the cluster use the same cache loader instance, e.g., are talking to the
+      same database.
+   -->
+  <!--  <loaders passivation="false" shared="false">
+      <preload>
+         <node fqn="/org/jboss"/>
+         <node fqn="/org/tempdata"/>
+      </preload> -->
+
+      <!--
+         we can have multiple cache loaders, which get chained
+      -->
+     <!-- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="true" fetchPersistentState="true"
+              ignoreModifications="true" purgeOnStartup="true">
+
+         <properties>
+            cache.jdbc.table.name=jbosscache
+            cache.jdbc.table.create=true
+            cache.jdbc.table.drop=true
+            cache.jdbc.table.primarykey=jbosscache_pk
+            cache.jdbc.fqn.column=fqn
+            cache.jdbc.fqn.type=varchar(255)
+            cache.jdbc.node.column=node
+            cache.jdbc.node.type=blob
+            cache.jdbc.parent.column=parent
+            cache.jdbc.sql-concat=1 || 2
+            cache.jdbc.driver = org.apache.derby.jdbc.EmbeddedDriver
+            cache.jdbc.url=jdbc:derby:jbossdb;create=true
+            cache.jdbc.user=user1
+            cache.jdbc.password=user1
+         </properties>  --> 
+         <!-- alternatively use a connection from a datasorce, as per the code sample below-->
+         <!--<properties>-->
+         <!--cache.jdbc.datasource=AllSampleDS-->
+         <!--cache.jdbc.table.name=jbosscache-->
+         <!--cache.jdbc.table.create=true-->
+         <!--cache.jdbc.table.drop=true-->
+         <!--</properties>-->
+         <!-- <singletonStore enabled="true" class="org.jboss.cache.loader.SingletonStoreCacheLoader">
+            <properties>
+               pushStateWhenCoordinator=true
+               pushStateWhenCoordinatorTimeout=20000
+            </properties>
+         </singletonStore>
+      </loader>
+   </loaders> -->
+ 
+   <!--
+      Define custom interceptors.  All custom interceptors need to extend org.jboss.cache.interceptors.base.CommandInterceptor
+   -->
+   <!--
+   <customInterceptors>
+      <interceptor position="first" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor">
+         <property name="attrOne" value="value1" />
+         <property name="attrTwo" value="value2" />
+      </interceptor>
+      <interceptor position="last" class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor index="3" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+      <interceptor before="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor after="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+   </customInterceptors>
+   -->
+</jbosscache>

Modified: branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/WEB-INF/components.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/WEB-INF/components.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/WEB-INF/components.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -1,25 +1,29 @@
-<components xmlns="http://jboss.com/products/seam/components">
+<?xml version="1.0" encoding="UTF-8"?>
+<components xmlns="http://jboss.com/products/seam/components"
+            xmlns:core="http://jboss.com/products/seam/core"
+            xmlns:cache="http://jboss.com/products/seam/cache"
+            xmlns:jms="http://jboss.com/products/seam/jms"
+            xmlns:remoting="http://jboss.com/products/seam/remoting"           
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation=
+                "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd
+                 http://jboss.com/products/seam/cache http://jboss.com/products/seam/cache-2.2.xsd
+                 http://jboss.com/products/seam/remoting http://jboss.com/products/seam/remoting-2.2.xsd
+                 http://jboss.com/products/seam/jms http://jboss.com/products/seam/jms-2.2.xsd
+                 http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd">
 
-    <component name="org.jboss.seam.core.init">
-        <property name="jndiPattern">@jndiPattern@</property>
-    </component>
+    <core:init jndi-pattern="@jndiPattern@" debug="true" />
     
-    <component name="topicPublisher" class="org.jboss.seam.jms.ManagedTopicPublisher">
-        <property name="topicJndiName">topic/chatroomTopic</property>
-    </component>
+    <core:manager conversation-timeout="120000"/>
+        
+    <cache:jboss-cache3-provider auto-create="true" configuration="META-INF/cache-configuration.xml" />
+    
+    <remoting:remoting poll-interval="1" poll-timeout="2" debug="false"/>
+    
+    <jms:managed-topic-publisher name="topicPublisher" auto-create="true" topic-jndi-name="topic/chatroomTopic"/>
 
-    <component class="org.jboss.seam.remoting.messaging.SubscriptionRegistry" installed="true">
+	<component class="org.jboss.seam.remoting.messaging.SubscriptionRegistry" installed="true">
         <property name="allowedTopics">chatroomTopic</property>
     </component>
 
-    <component name="org.jboss.seam.core.manager">
-        <property name="conversationTimeout">120000</property>
-    </component>
-    
-    <component name="org.jboss.seam.remoting.remoting">
-      <property name="debug">false</property>
-      <property name="pollTimeout">2</property>
-      <property name="pollInterval">1</property>
-    </component>
-
 </components>

Deleted: branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/treecache.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/treecache.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/remoting/chatroom/resources/treecache.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  Sample TreeCache Service Configuration                               -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<server>
-
-    <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
-
-
-    <!-- ==================================================================== -->
-    <!-- Defines TreeCache configuration                                      -->
-    <!-- ==================================================================== -->
-
-    <mbean code="org.jboss.cache.TreeCache"
-        name="jboss.cache:service=TreeCache">
-
-        <depends>jboss:service=Naming</depends>
-        <depends>jboss:service=TransactionManager</depends>
-
-        <!--
-        Configure the TransactionManager
-    -->
-        <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
-
-        <!--
-            Isolation level : SERIALIZABLE
-                              REPEATABLE_READ (default)
-                              READ_COMMITTED
-                              READ_UNCOMMITTED
-                              NONE
-        -->
-        <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
-
-        <!--
-             Valid modes are LOCAL
-                             REPL_ASYNC
-                             REPL_SYNC
-                             INVALIDATION_ASYNC
-                             INVALIDATION_SYNC
-        -->
-        <attribute name="CacheMode">REPL_ASYNC</attribute>
-
-        <!--
-        Just used for async repl: use a replication queue
-        -->
-        <attribute name="UseReplQueue">false</attribute>
-
-        <!--
-            Replication interval for replication queue (in ms)
-        -->
-        <attribute name="ReplQueueInterval">0</attribute>
-
-        <!--
-            Max number of elements which trigger replication
-        -->
-        <attribute name="ReplQueueMaxElements">0</attribute>
-
-        <!-- Name of cluster. Needs to be the same for all clusters, in order
-             to find each other
-        -->
-        <attribute name="ClusterName">TreeCache-Cluster</attribute>
-
-        <!-- JGroups protocol stack properties. Can also be a URL,
-             e.g. file:/home/bela/default.xml
-           <attribute name="ClusterProperties"></attribute>
-        -->
-
-        <attribute name="ClusterConfig">
-            <config>
-                <!-- UDP: if you have a multihomed machine,
-                set the bind_addr attribute to the appropriate NIC IP address -->
-                <!-- UDP: On Windows machines, because of the media sense feature
-                 being broken with multicast (even after disabling media sense)
-                 set the loopback attribute to true -->
-                <UDP mcast_addr="228.1.2.3" mcast_port="48866"
-                    ip_ttl="64" ip_mcast="true" 
-                    mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
-                    ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
-                    loopback="false"/>
-                <PING timeout="2000" num_initial_members="3"
-                    up_thread="false" down_thread="false"/>
-                <MERGE2 min_interval="10000" max_interval="20000"/>
-                <!--        <FD shun="true" up_thread="true" down_thread="true" />-->
-                <FD_SOCK/>
-                <VERIFY_SUSPECT timeout="1500"
-                    up_thread="false" down_thread="false"/>
-                <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
-                    max_xmit_size="8192" up_thread="false" down_thread="false"/>
-                <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
-                    down_thread="false"/>
-                <pbcast.STABLE desired_avg_gossip="20000"
-                    up_thread="false" down_thread="false"/>
-                <FRAG frag_size="8192"
-                    down_thread="false" up_thread="false"/>
-                <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
-                    shun="true" print_local_addr="true"/>
-                <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
-            </config>
-        </attribute>
-
-        <!--
-         Whether or not to fetch state on joining a cluster
-         NOTE this used to be called FetchStateOnStartup and has been renamed to be more descriptive.
-        -->
-        <attribute name="FetchInMemoryState">true</attribute>
-
-        <!--
-            The max amount of time (in milliseconds) we wait until the
-            initial state (ie. the contents of the cache) are retrieved from
-            existing members in a clustered environment
-        -->
-        <attribute name="InitialStateRetrievalTimeout">20000</attribute>
-
-        <!--
-            Number of milliseconds to wait until all responses for a
-            synchronous call have been received.
-        -->
-        <attribute name="SyncReplTimeout">20000</attribute>
-
-        <!-- Max number of milliseconds to wait for a lock acquisition -->
-        <attribute name="LockAcquisitionTimeout">15000</attribute>
-
-
-        <!-- Name of the eviction policy class. -->
-        <attribute name="EvictionPolicyClass"></attribute>
-       
-       <!--
-          Indicate whether to use marshalling or not. Set this to true if you are running under a scoped
-          class loader, e.g., inside an application server. Default is "false".
-       -->
-        <attribute name="UseMarshalling">false</attribute>
-
-    </mbean>
-
-
-   <!--  Uncomment to get a graphical view of the TreeCache MBean above -->
-   <!--   <mbean code="org.jboss.cache.TreeCacheView" name="jboss.cache:service=TreeCacheView">-->
-   <!--      <depends>jboss.cache:service=TreeCache</depends>-->
-   <!--      <attribute name="CacheService">jboss.cache:service=TreeCache</attribute>-->
-   <!--   </mbean>-->
-
-
-</server>

Added: branches/enterprise/JBPAPP_5_0/examples/ui/resources/META-INF/cache-configuration.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/ui/resources/META-INF/cache-configuration.xml	                        (rev 0)
+++ branches/enterprise/JBPAPP_5_0/examples/ui/resources/META-INF/cache-configuration.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -0,0 +1,196 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<jbosscache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:jboss:jbosscache-core:config:3.0">
+
+
+   <!--
+      isolation levels supported: READ_COMMITTED and REPEATABLE_READ
+      nodeLockingSchemes: mvcc, pessimistic (deprecated), optimistic (deprecated)
+   -->
+   <locking
+         isolationLevel="REPEATABLE_READ"
+         lockParentForChildInsertRemove="false"
+         lockAcquisitionTimeout="20000"
+         nodeLockingScheme="mvcc"
+         writeSkewCheck="false"
+         concurrencyLevel="500"/>
+
+   <!--
+      Used to register a transaction manager and participate in ongoing transactions.
+      -->
+   <transaction
+         transactionManagerLookupClass="org.jboss.cache.transaction.JBossTransactionManagerLookup"
+         syncRollbackPhase="false"
+         syncCommitPhase="false"/>
+
+   <!--
+      Used to register JMX statistics in any available MBean server
+      -->
+   <jmxStatistics
+         enabled="false"/>
+
+   <!--
+      If region based marshalling is used, defines whether new regions are inactive on startup.
+   -->
+   <startup
+         regionsInactiveOnStartup="true"/>
+
+   <!--
+      Used to register JVM shutdown hooks.
+      hookBehavior: DEFAULT, REGISTER, DONT_REGISTER
+   -->
+   <shutdown
+         hookBehavior="DEFAULT"/>
+
+   <!--
+      Used to define async listener notification thread pool size
+   -->
+   <listeners
+         asyncPoolSize="1"
+         asyncQueueSize="1000000"/>
+
+   <!--
+      Used to enable invocation batching and allow the use of Cache.startBatch()/endBatch() methods.
+   -->
+   <invocationBatching
+         enabled="false"/>
+
+   <!--
+      serialization related configuration, used for replication and cache loading
+   -->
+<!-- <serialization
+         objectInputStreamPoolSize="12"
+         objectOutputStreamPoolSize="14"
+         version="3.0.0"
+         marshallerClass="org.jboss.cache.marshall.VersionAwareMarshaller"
+         useLazyDeserialization="false"
+         useRegionBasedMarshalling="false"/> -->   
+
+   <!--
+      This element specifies that the cache is clustered.
+      modes supported: replication (r) or invalidation (i).
+   -->
+   <clustering mode="replication" clusterName="JBossCache-cluster">
+
+      <!--
+         Defines whether to retrieve state on startup
+      -->
+      <stateRetrieval timeout="20000" fetchInMemoryState="false"/>
+
+      <!--
+         Network calls are synchronous.
+      -->
+      <sync replTimeout="20000"/>
+      <!--
+         Uncomment this for async replication.
+      -->
+      <!--<async useReplQueue="true" replQueueInterval="10000" replQueueMaxElements="500" serializationExecutorPoolSize="20" serializationExecutorQueueSize="5000000"/>-->
+
+
+      <!--
+         Configures the JGroups channel.  Looks up a JGroups config file on the classpath or filesystem.  udp.xml
+         ships with jgroups.jar and will be picked up by the class loader.
+      -->
+      <jgroupsConfig>
+
+         <UDP discard_incompatible_packets="true" enable_bundling="false" enable_diagnostics="false" ip_ttl="2"
+              loopback="false" max_bundle_size="64000" max_bundle_timeout="30" mcast_addr="228.10.10.10"
+              mcast_port="45588" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+              oob_thread_pool.enabled="true" oob_thread_pool.keep_alive_time="10000" oob_thread_pool.max_threads="4"
+              oob_thread_pool.min_threads="1" oob_thread_pool.queue_enabled="true" oob_thread_pool.queue_max_size="10"
+              oob_thread_pool.rejection_policy="Run" thread_naming_pattern="pl" thread_pool.enabled="true"
+              thread_pool.keep_alive_time="30000" thread_pool.max_threads="25" thread_pool.min_threads="1"
+              thread_pool.queue_enabled="true" thread_pool.queue_max_size="10" thread_pool.rejection_policy="Run"
+              tos="8" ucast_recv_buf_size="20000000" ucast_send_buf_size="640000" use_concurrent_stack="true"
+              use_incoming_packet_handler="true"/>
+         <PING num_initial_members="3" timeout="2000"/>
+         <MERGE2 max_interval="30000" min_interval="10000"/>
+         <FD_SOCK/>
+         <FD max_tries="5" shun="true" timeout="10000"/>
+         <VERIFY_SUSPECT timeout="1500"/>
+         <pbcast.NAKACK discard_delivered_msgs="true" gc_lag="0" retransmit_timeout="300,600,1200,2400,4800"
+                        use_mcast_xmit="false"/>
+         <UNICAST timeout="300,600,1200,2400,3600"/>
+         <pbcast.STABLE desired_avg_gossip="50000" max_bytes="400000" stability_delay="1000"/>
+         <pbcast.GMS join_timeout="5000" print_local_addr="true" shun="false" view_ack_collection_timeout="5000"
+                     view_bundling="true"/>
+         <FRAG2 frag_size="60000"/>
+         <pbcast.STREAMING_STATE_TRANSFER/>
+         <pbcast.FLUSH timeout="0"/>
+
+      </jgroupsConfig>
+   </clustering>
+
+   <!--
+      Cache loaders.
+
+      If passivation is enabled, state is offloaded to the cache loaders ONLY when evicted.  Similarly, when the state
+      is accessed again, it is removed from the cache loader and loaded into memory.
+
+      Otherwise, state is always maintained in the cache loader as well as in memory.
+
+      Set 'shared' to true if all instances in the cluster use the same cache loader instance, e.g., are talking to the
+      same database.
+   -->
+  <!--  <loaders passivation="false" shared="false">
+      <preload>
+         <node fqn="/org/jboss"/>
+         <node fqn="/org/tempdata"/>
+      </preload> -->
+
+      <!--
+         we can have multiple cache loaders, which get chained
+      -->
+     <!-- <loader class="org.jboss.cache.loader.JDBCCacheLoader" async="true" fetchPersistentState="true"
+              ignoreModifications="true" purgeOnStartup="true">
+
+         <properties>
+            cache.jdbc.table.name=jbosscache
+            cache.jdbc.table.create=true
+            cache.jdbc.table.drop=true
+            cache.jdbc.table.primarykey=jbosscache_pk
+            cache.jdbc.fqn.column=fqn
+            cache.jdbc.fqn.type=varchar(255)
+            cache.jdbc.node.column=node
+            cache.jdbc.node.type=blob
+            cache.jdbc.parent.column=parent
+            cache.jdbc.sql-concat=1 || 2
+            cache.jdbc.driver = org.apache.derby.jdbc.EmbeddedDriver
+            cache.jdbc.url=jdbc:derby:jbossdb;create=true
+            cache.jdbc.user=user1
+            cache.jdbc.password=user1
+         </properties>  --> 
+         <!-- alternatively use a connection from a datasorce, as per the code sample below-->
+         <!--<properties>-->
+         <!--cache.jdbc.datasource=AllSampleDS-->
+         <!--cache.jdbc.table.name=jbosscache-->
+         <!--cache.jdbc.table.create=true-->
+         <!--cache.jdbc.table.drop=true-->
+         <!--</properties>-->
+         <!-- <singletonStore enabled="true" class="org.jboss.cache.loader.SingletonStoreCacheLoader">
+            <properties>
+               pushStateWhenCoordinator=true
+               pushStateWhenCoordinatorTimeout=20000
+            </properties>
+         </singletonStore>
+      </loader>
+   </loaders> -->
+ 
+   <!--
+      Define custom interceptors.  All custom interceptors need to extend org.jboss.cache.interceptors.base.CommandInterceptor
+   -->
+   <!--
+   <customInterceptors>
+      <interceptor position="first" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor">
+         <property name="attrOne" value="value1" />
+         <property name="attrTwo" value="value2" />
+      </interceptor>
+      <interceptor position="last" class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor index="3" class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+      <interceptor before="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.BbbCustomInterceptor"/>
+      <interceptor after="org.jboss.cache.interceptors.CallInterceptor"
+                   class="org.jboss.cache.config.parsing.custominterceptors.AaaCustomInterceptor"/>
+   </customInterceptors>
+   -->
+</jbosscache>

Modified: branches/enterprise/JBPAPP_5_0/examples/ui/resources/WEB-INF/components.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/ui/resources/WEB-INF/components.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/ui/resources/WEB-INF/components.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -3,16 +3,20 @@
 	xmlns:core="http://jboss.com/products/seam/core"
 	xmlns:framework="http://jboss.com/products/seam/framework"
 	xmlns:persistence="http://jboss.com/products/seam/persistence"
+	xmlns:cache="http://jboss.com/products/seam/cache"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 	xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.2.xsd 
                  http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.2.xsd 
                  http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.2.xsd 
+                 http://jboss.com/products/seam/cache http://jboss.com/products/seam/cache-2.2.xsd
                  http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.2.xsd">
 	
 	<core:init jndi-pattern="jboss-seam-ui-example/#{ejbName}/local" debug="true"/>
 
 	<core:manager conversation-timeout="120000"/>
 	
+	<cache:jboss-cache3-provider auto-create="true" configuration="META-INF/cache-configuration.xml" />
+	
 	<persistence:managed-persistence-context name="entityManager" persistence-unit-jndi-name="java:/uiEntityManagerFactory"/>
     
     <framework:entity-query name="countries" ejbql="select c from Country c" />

Deleted: branches/enterprise/JBPAPP_5_0/examples/ui/resources/treecache.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/ui/resources/treecache.xml	2010-04-30 15:57:18 UTC (rev 12667)
+++ branches/enterprise/JBPAPP_5_0/examples/ui/resources/treecache.xml	2010-04-30 16:11:01 UTC (rev 12668)
@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  Sample TreeCache Service Configuration                               -->
-<!--                                                                       -->
-<!-- ===================================================================== -->
-
-<server>
-
-    <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
-
-
-    <!-- ==================================================================== -->
-    <!-- Defines TreeCache configuration                                      -->
-    <!-- ==================================================================== -->
-
-    <mbean code="org.jboss.cache.TreeCache"
-        name="jboss.cache:service=TreeCache">
-
-        <depends>jboss:service=Naming</depends>
-        <depends>jboss:service=TransactionManager</depends>
-
-        <!--
-        Configure the TransactionManager
-    -->
-        <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
-
-        <!--
-            Isolation level : SERIALIZABLE
-                              REPEATABLE_READ (default)
-                              READ_COMMITTED
-                              READ_UNCOMMITTED
-                              NONE
-        -->
-        <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
-
-        <!--
-             Valid modes are LOCAL
-                             REPL_ASYNC
-                             REPL_SYNC
-                             INVALIDATION_ASYNC
-                             INVALIDATION_SYNC
-        -->
-        <attribute name="CacheMode">REPL_ASYNC</attribute>
-
-        <!--
-        Just used for async repl: use a replication queue
-        -->
-        <attribute name="UseReplQueue">false</attribute>
-
-        <!--
-            Replication interval for replication queue (in ms)
-        -->
-        <attribute name="ReplQueueInterval">0</attribute>
-
-        <!--
-            Max number of elements which trigger replication
-        -->
-        <attribute name="ReplQueueMaxElements">0</attribute>
-
-        <!-- Name of cluster. Needs to be the same for all clusters, in order
-             to find each other
-        -->
-        <attribute name="ClusterName">TreeCache-Cluster</attribute>
-
-        <!-- JGroups protocol stack properties. Can also be a URL,
-             e.g. file:/home/bela/default.xml
-           <attribute name="ClusterProperties"></attribute>
-        -->
-
-        <attribute name="ClusterConfig">
-            <config>
-                <!-- UDP: if you have a multihomed machine,
-                set the bind_addr attribute to the appropriate NIC IP address -->
-                <!-- UDP: On Windows machines, because of the media sense feature
-                 being broken with multicast (even after disabling media sense)
-                 set the loopback attribute to true -->
-                <UDP mcast_addr="228.1.2.3" mcast_port="48866"
-                    ip_ttl="64" ip_mcast="true" 
-                    mcast_send_buf_size="150000" mcast_recv_buf_size="80000"
-                    ucast_send_buf_size="150000" ucast_recv_buf_size="80000"
-                    loopback="false"/>
-                <PING timeout="2000" num_initial_members="3"
-                    up_thread="false" down_thread="false"/>
-                <MERGE2 min_interval="10000" max_interval="20000"/>
-                <!--        <FD shun="true" up_thread="true" down_thread="true" />-->
-                <FD_SOCK/>
-                <VERIFY_SUSPECT timeout="1500"
-                    up_thread="false" down_thread="false"/>
-                <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
-                    max_xmit_size="8192" up_thread="false" down_thread="false"/>
-                <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10"
-                    down_thread="false"/>
-                <pbcast.STABLE desired_avg_gossip="20000"
-                    up_thread="false" down_thread="false"/>
-                <FRAG frag_size="8192"
-                    down_thread="false" up_thread="false"/>
-                <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
-                    shun="true" print_local_addr="true"/>
-                <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
-            </config>
-        </attribute>
-
-        <!--
-         Whether or not to fetch state on joining a cluster
-         NOTE this used to be called FetchStateOnStartup and has been renamed to be more descriptive.
-        -->
-        <attribute name="FetchInMemoryState">true</attribute>
-
-        <!--
-            The max amount of time (in milliseconds) we wait until the
-            initial state (ie. the contents of the cache) are retrieved from
-            existing members in a clustered environment
-        -->
-        <attribute name="InitialStateRetrievalTimeout">20000</attribute>
-
-        <!--
-            Number of milliseconds to wait until all responses for a
-            synchronous call have been received.
-        -->
-        <attribute name="SyncReplTimeout">20000</attribute>
-
-        <!-- Max number of milliseconds to wait for a lock acquisition -->
-        <attribute name="LockAcquisitionTimeout">15000</attribute>
-
-
-        <!-- Name of the eviction policy class. -->
-        <attribute name="EvictionPolicyClass"></attribute>
-       
-       <!--
-          Indicate whether to use marshalling or not. Set this to true if you are running under a scoped
-          class loader, e.g., inside an application server. Default is "false".
-       -->
-        <attribute name="UseMarshalling">false</attribute>
-
-    </mbean>
-
-
-   <!--  Uncomment to get a graphical view of the TreeCache MBean above -->
-   <!--   <mbean code="org.jboss.cache.TreeCacheView" name="jboss.cache:service=TreeCacheView">-->
-   <!--      <depends>jboss.cache:service=TreeCache</depends>-->
-   <!--      <attribute name="CacheService">jboss.cache:service=TreeCache</attribute>-->
-   <!--   </mbean>-->
-
-
-</server>



More information about the seam-commits mailing list