[jbpm-commits] JBoss JBPM SVN: r6540 - in jbpm3/branches/jbpm-3.2-soa: modules/core/src/main/resources and 5 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jul 30 23:23:33 EDT 2010


Author: alex.guizar at jboss.com
Date: 2010-07-30 23:23:32 -0400 (Fri, 30 Jul 2010)
New Revision: 6540

Added:
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml
Modified:
   jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
   jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/hibernate.common.xml
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/scripts/antrun-installer.xml
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/installer/install-definition.xml
   jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml
Log:
JBPM-2916 employ jbc 1.4 cache provider in jbas 4 and jbc 2 cache region factory in jbas 5

Modified: jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh	2010-07-29 06:21:07 UTC (rev 6539)
+++ jbpm3/branches/jbpm-3.2-soa/hudson/hudson-home/command.sh	2010-07-31 03:23:32 UTC (rev 6540)
@@ -6,7 +6,6 @@
 # Exported shell variables required:
 # WORKSPACE      work directory
 # JAVA_HOME      location of java development kit
-# JAVA_14_HOME
 # JAVA_15_HOME   required if testing against java 1.4 only
 # DATABASE       db2, hsqldb, mssql, mysql, oracle, postgresql
 # CONTAINER      jboss405, jboss423, jboss501, jboss510
@@ -49,34 +48,26 @@
 JAVA_VERSION=`$JAVA -version 2>&1 | grep version | awk '{ print substr($3, 2, 3); }'`
 
 if [ $JAVA_VERSION = 1.4 ]; then
-    JAVA_BT_HOME=$JAVA_15_HOME
-    JAVA_RT_HOME=$JAVA_HOME
-    JAVA=$JAVA_BT_HOME/bin/java
+  ORIG_JAVA_HOME=$JAVA_HOME
+  JAVA=$JAVA_15_HOME/bin/java
+  export JAVA_HOME=$JAVA_15_HOME
 else
-    JAVA_BT_HOME=$JAVA_HOME
-    JAVA_RT_HOME=$JAVA_HOME
+  ORIG_JAVA_HOME=$JAVA_HOME
 fi
 
 #
 # Set up Maven
 #
-export MAVEN_OPTS=-Ddatabase=$DATABASE
+export MAVEN_OPTS="-Ddatabase=$DATABASE -Xms16m -Xmx256m"
 cp -u hudson/profiles.redhat.qa.xml profiles.xml
 
-#
-# Give builds a max memory amount of at least 256 MB
-#
-TOTAL_MEM=`free -mo | grep Mem | awk '{ print $2 }'`
-if [ `expr $TOTAL_MEM / 4` -lt 256 ]; then
-  export MAVEN_OPTS="$MAVEN_OPTS -Xms64m -Xmx256m"
-fi
+# Determine jBPM version
+mvn -Dexpression=project.version help:evaluate > $WORKSPACE/project-version.txt
+JBPM_VERSION=`grep '^3\.' $WORKSPACE/project-version.txt`
 
 #
 # Build distro
 #
-export JAVA_HOME=$JAVA_BT_HOME
-mvn -Dexpression=project.version help:evaluate > $WORKSPACE/project-version.txt
-JBPM_VERSION=`grep '^3\.' $WORKSPACE/project-version.txt`
 mvn -Pdistro,soa -Djbpm.home=$WORKSPACE/jbpm-$JBPM_VERSION -Dcontainer=$CONTAINER \
   -Djboss.home=$JBOSS_HOME -Djboss.server=$JBOSS_SERVER clean install
 if [ $? -ne 0 ]; then
@@ -148,7 +139,6 @@
 #
 # Start JBoss AS
 #
-export JAVA_HOME=$JAVA_RT_HOME
 $JBOSS_HOME/bin/run.sh -b $JBOSS_BINDADDR -c $JBOSS_SERVER &> /dev/null &
 
 # Was it successfully started?
@@ -160,16 +150,11 @@
 fi
 
 #
-# Give tests a max memory amount of at least 256 MB
-#
-if [ $JAVA_VERSION = 1.4 -o `expr $TOTAL_MEM / 4` -lt 256 ]; then
-  export MAVEN_OPTS="$MAVEN_OPTS -Dsurefire.jvm.args=-Xmx256m"
-fi
-
-#
 # Execute tests
 #
-mvn --fail-at-end -Djboss.bind.address=$JBOSS_BINDADDR test | tee $WORKSPACE/tests.log
+export JAVA_HOME=$ORIG_JAVA_HOME
+mvn --fail-at-end -Djboss.bind.address=$JBOSS_BINDADDR -Dsurefire.jvm.args="-Xms64m -Xmx256m" \
+  test | tee $WORKSPACE/tests.log
 grep -E 'FIXME\|FAILED' $WORKSPACE/tests.log | sort -u | tee $WORKSPACE/fixme.txt
 grep -E '\[\S*]' $WORKSPACE/fixme.txt > $WORKSPACE/errata-$CONTAINER.txt
 

Modified: jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/hibernate.common.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/hibernate.common.xml	2010-07-29 06:21:07 UTC (rev 6539)
+++ jbpm3/branches/jbpm-3.2-soa/modules/core/src/main/resources/hibernate.common.xml	2010-07-31 03:23:32 UTC (rev 6540)
@@ -14,26 +14,46 @@
     <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
     ==== CMT transaction properties (end) -->
 
+    <!-- SQL rendering properties (begin) ===
+    <property name="hibernate.format_sql">true</property>
+    <property name="hibernate.use_sql_comments">true</property>
+    ==== SQL rendering properties (end) -->
+
     <!-- ################################### -->
-    <!-- # common settings                 # -->
+    <!-- # cache settings                  # -->
     <!-- ################################### -->
 
     <property name="hibernate.cache.use_second_level_cache">true</property>
 
     <!-- Memory cache (begin) -->
-    <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
+    <property name="hibernate.cache.provider_class">
+      org.hibernate.cache.HashtableCacheProvider
+    </property>
     <!-- Memory cache (end) -->
 
+    <!--
+      The cache provider is for use with Hibernate 3.2 and JBoss Cache 1.4,
+      both included in JBoss AS 4. In this environment, the cache region factory
+      property is not known and simply ignored.
+      http://community.jboss.org/wiki/NewJBossCache14xBasedHibernate32CacheProvider
+
+      The cache region factory is for use with Hibernate 3.3 and JBoss Cache 2,
+      both components of JBoss AS 5. In this environment, the cache region factory
+      takes precedence over the cache provider.
+      http://community.jboss.org/wiki/ReferenceManualJBossCache2asaHibernate33SecondLevelCache
+    -->
+
     <!-- Clustered cache (begin) ===
-    <property name="hibernate.cache.provider_class">org.jboss.hibernate.jbc.cacheprovider.JmxBoundTreeCacheProvider</property>
-    <property name="hibernate.treecache.mbean.object_name">org.jboss.jbpm:service=TreeCache,type=Hibernate</property>
+    <property name="hibernate.cache.provider_class">
+      org.jboss.hibernate.jbc.cacheprovider.JmxBoundTreeCacheProvider
+    </property>
+    <property name="hibernate.treecache.mbean.object_name">jboss.jbpm:service=TreeCache</property>
+
+    <property name="hibernate.cache.region.factory_class">
+      org.hibernate.cache.jbc2.MultiplexedJBossCacheRegionFactory
+    </property>
     ==== Clustered cache (end) -->
 
-    <!-- SQL rendering properties (begin) ===
-    <property name="hibernate.format_sql">true</property>
-    <property name="hibernate.use_sql_comments">true</property>
-    ==== SQL rendering properties (end) -->
-
     <!-- ############################################ -->
     <!-- # mapping files with external dependencies # -->
     <!-- ############################################ -->

Modified: jbpm3/branches/jbpm-3.2-soa/modules/distribution/scripts/antrun-installer.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/distribution/scripts/antrun-installer.xml	2010-07-29 06:21:07 UTC (rev 6539)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/scripts/antrun-installer.xml	2010-07-31 03:23:32 UTC (rev 6540)
@@ -66,7 +66,17 @@
     </copy>
   </target>
 
-  <target name="configure">
+  <target name="reorganize-examples">
+    <subant genericantfile="${ant.file}" target="reorganize-example" inheritall="yes">
+      <dirset dir="${project.build.assembly.resources}/jbpm-examples-dev/src/test/resources"
+              includes="*" />
+    </subant>
+    <copy todir="${project.build.assembly.resources}/jbpm-examples-dist">
+      <fileset dir="${resources.dir}/examples" excludes="module/**" />
+    </copy>
+  </target>
+
+  <target name="configure-hibernate">
     <property name="db2.cfg.xml"
               value="${project.build.assembly.resources}/jbpm-jpdl-config/hibernate.cfg.db2.xml" />
     <macro-disable file="${db2.cfg.xml}" section="JDBC connection properties" />
@@ -139,21 +149,13 @@
     <replace file="${sybase.cfg.xml}"
              token="usage=&quot;nonstrict-read-write&quot;"
              value="usage=&quot;transactional&quot;" />
-
-    <subant genericantfile="${ant.file}" target="reorganize-example" inheritall="yes">
-      <dirset dir="${project.build.assembly.resources}/jbpm-examples-dev/src/test/resources"
-              includes="*" />
-    </subant>
-    <copy todir="${project.build.assembly.resources}/jbpm-examples-dist">
-      <fileset dir="${resources.dir}/examples" excludes="module/**" />
-    </copy>
   </target>
 
   <!-- ================================================================== -->
   <!-- Distribution                                                       -->
   <!-- ================================================================== -->
   <target name="process-resources"
-          depends="configure"
+          depends="configure-hibernate, reorganize-examples"
           description="prepares installer resources">
     <copy todir="${resources.output.dir}" overwrite="true">
       <fileset dir="${resources.dir}/installer" />

Added: jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml	                        (rev 0)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml	2010-07-31 03:23:32 UTC (rev 6540)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  JBoss Cache 1.4 service, for use as Hibernate 3.2 cache provider.
+  http://community.jboss.org/wiki/NewJBossCache14xBasedHibernate32CacheProvider
+-->
+<server>
+  <mbean code="org.jboss.cache.TreeCache" name="jboss.jbpm:service=TreeCache">
+    <depends>jboss:service=Naming</depends>
+    <depends>jboss:service=TransactionManager</depends>
+
+    <!-- Configure the TransactionManager -->
+    <attribute name="TransactionManagerLookupClass">
+      org.jboss.cache.JBossTransactionManagerLookup
+    </attribute>
+
+    <!--
+       Node locking scheme:
+       OPTIMISTIC
+       PESSIMISTIC (default)
+    -->
+    <attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
+
+    <!--
+      Note that this attribute is IGNORED if your NodeLockingScheme above is OPTIMISTIC.
+
+      Isolation level:
+      SERIALIZABLE
+      REPEATABLE_READ (default)
+      READ_COMMITTED
+      READ_UNCOMMITTED
+      NONE
+      
+      Once a tx reads an item from the 2nd Level Cache, Hibernate caches it in the Session
+      object and does not go back to the 2LC for that same object. So READ_COMMITTED
+      should be enough. There is no benefit using REPEATABLE_READ.
+    -->
+    <attribute name="IsolationLevel">READ_COMMITTED</attribute>
+
+    <!--
+      Cache mode:
+      LOCAL
+      REPL_ASYNC
+      REPL_SYNC
+      INVALIDATION_ASYNC
+      INVALIDATION_SYNC
+
+      INVALIDATION_ASYNC is recommended for use with clustered second-level caches.
+    -->
+    <attribute name="CacheMode">LOCAL</attribute>
+
+    <!-- Name of cluster. Needs to be the same for all clusters, in order to find each other -->
+    <attribute name="ClusterName">TreeCache-Cluster</attribute>
+
+    <attribute name="ClusterConfig">
+      <config>
+        <UDP mcast_addr="230.1.2.3" mcast_port="43333" tos="8" ucast_recv_buf_size="20000000"
+          ucast_send_buf_size="640000" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+          loopback="false" discard_incompatible_packets="true" enable_bundling="true"
+          max_bundle_size="64000" max_bundle_timeout="30" use_incoming_packet_handler="true"
+          use_outgoing_packet_handler="false" ip_ttl="2" down_thread="false" up_thread="false" />
+        <PING timeout="2000" down_thread="false" up_thread="false" num_initial_members="3" />
+        <MERGE2 max_interval="100000" down_thread="false" up_thread="false" min_interval="20000" />
+        <FD_SOCK down_thread="false" up_thread="false" />
+        <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true" />
+        <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
+        <pbcast.NAKACK max_xmit_size="60000" use_mcast_xmit="false" gc_lag="0"
+          retransmit_timeout="300,600,1200,2400,4800" down_thread="false" up_thread="false"
+          discard_delivered_msgs="true" />
+        <UNICAST timeout="300,600,1200,2400,3600" down_thread="false" up_thread="false" />
+        <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+          down_thread="false" up_thread="false" max_bytes="400000" />
+        <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false"
+          up_thread="false" join_retry_timeout="2000" shun="true" view_bundling="true" />
+        <FRAG2 frag_size="60000" down_thread="false" up_thread="false" />
+        <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"
+          use_flush="false" />
+      </config>
+    </attribute>
+
+    <!-- Whether or not to fetch state on joining a cluster -->
+    <attribute name="FetchInMemoryState">false</attribute>
+
+    <!-- Time 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>
+
+    <!--
+      Indicate whether to use marshalling. Set this to true if you are running under a scoped
+      class loader, for instance, inside an application server. Default is "false".
+    -->
+    <attribute name="UseRegionBasedMarshalling">true</attribute>
+    <!-- Must match the value of "useRegionBasedMarshalling" -->
+    <attribute name="InactiveOnStartup">true</attribute>
+
+    <!--  Specific eviction policy configurations. This is LRU -->
+    <attribute name="EvictionPolicyConfig">
+      <config>
+        <attribute name="wakeUpIntervalSeconds">5</attribute>
+        <!-- Name of the DEFAULT eviction policy class. -->
+        <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
+        <!--  Cache wide default -->
+        <region name="/_default_">
+          <attribute name="maxNodes">5000</attribute>
+          <attribute name="timeToLiveSeconds">1000</attribute>
+        </region>
+        <!--  Do not ever evict modification timestamps -->
+        <region name="/TS">
+          <attribute name="maxNodes">0</attribute>
+          <attribute name="timeToLiveSeconds">0</attribute>
+        </region>
+      </config>
+    </attribute>
+  </mbean>
+</server>
\ No newline at end of file


Property changes on: jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/cache/jbpm-jbc1-service.xml
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native

Modified: jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/installer/install-definition.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/installer/install-definition.xml	2010-07-29 06:21:07 UTC (rev 6539)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/installer/install-definition.xml	2010-07-31 03:23:32 UTC (rev 6540)
@@ -173,7 +173,7 @@
         <include name="log4j.jar" />
       </fileset>
 
-      <!-- jbpm3/src - Must be called 'src' because the GPD has a dependency on it -->
+      <!-- jbpm3/src - Must be called 'src' because the GPD depends on it -->
       <fileset dir="@{project.build.assemblyDirectory}/src" targetdir="$INSTALL_PATH/src">
         <include name="jsf-console-sources.jar" />
         <include name="jbpm-jpdl-sources.jar" />
@@ -200,10 +200,15 @@
         targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm/jbpm-service.sar">
         <include name="jbpm-jpdl.jar" />
         <include name="jbpm-identity.jar" />
-        <include name="hibernate-jbc-cacheprovider.jar" />
       </fileset>
       <file src="@{resources.directory}/service/jboss-service.xml"
         targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm/jbpm-service.sar/META-INF" />
+      <file condition="isJBoss405"
+        src="@{project.build.assemblyDirectory}/lib/hibernate-jbc-cacheprovider.jar"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm/jbpm-service.sar" />
+      <file condition="isJBoss423"
+        src="@{project.build.assemblyDirectory}/lib/hibernate-jbc-cacheprovider.jar"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm/jbpm-service.sar" />
 
       <!-- jbpm/jbpm-enterprise.jar -->
       <file src="@{project.build.assemblyDirectory}/lib/jbpm-enterprise.jar"
@@ -215,18 +220,30 @@
         targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm/jbpm-userguide.war"
         unpack="true" />
 
-      <!-- jbpm-mq-service -->
-      <file src="@{resources.directory}/destination/jbpm-mq-service.xml" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+      <!-- jbpm-mq-service.xml -->
+      <file src="@{resources.directory}/destination/jbpm-mq-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
         condition="isJBoss405" />
-      <file src="@{resources.directory}/destination/jbpm-mq-service.xml" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+      <file src="@{resources.directory}/destination/jbpm-mq-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
         condition="isJBoss423" />
 
-      <!-- jbpm-jbm-service -->
-      <file src="@{resources.directory}/destination/jbpm-jbm-service.xml" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+      <!-- jbpm-jbm-service.xml -->
+      <file src="@{resources.directory}/destination/jbpm-jbm-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
         condition="isJBoss501" />
-      <file src="@{resources.directory}/destination/jbpm-jbm-service.xml" targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+      <file src="@{resources.directory}/destination/jbpm-jbm-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
         condition="isJBoss510" />
 
+      <!-- jbpm-jbc1-service.xml -->
+      <file src="@{resources.directory}/cache/jbpm-jbc1-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+        condition="isJBoss405" />
+      <file src="@{resources.directory}/cache/jbpm-jbc1-service.xml"
+        targetdir="${jbossInstallPath}/server/${jbossTargetServer}/deploy/jbpm"
+        condition="isJBoss423" />
+
       <!-- Database configs to docs/examples/jbpm -->
       <fileset dir="@{project.build.assemblyDirectory}/resources/jbpm-jpdl-config"
         targetdir="${jbossInstallPath}/docs/examples/jbpm">

Modified: jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml
===================================================================
--- jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml	2010-07-29 06:21:07 UTC (rev 6539)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml	2010-07-31 03:23:32 UTC (rev 6540)
@@ -1,19 +1,29 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
+<!--
+  Dynamic login service that specifies a JAAS login configuration as part of a deployment.
+  http://community.jboss.org/wiki/DynamicLoginConfig
+-->
 <server>
-  <!-- JAAS login configuration that dynamically updates the application server policy -->
-  <mbean code="org.jboss.security.auth.login.DynamicLoginConfig" name="org.jboss.jbpm:service=LoginConfig">
+  <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
+    name="jboss.jbpm:service=LoginConfig">
+    <!-- Service that supports dynamic processing of login configurations -->
     <depends optional-attribute-name="LoginConfigService">
       jboss.security:service=XMLLoginConfig
     </depends>
 
+    <!--
+      Security manager to use when this service is stopped
+      to flush the auth caches of the domains registered by this service
+    -->
     <depends optional-attribute-name="SecurityManagerService">
       jboss.security:service=JaasSecurityManager
     </depends>
 
     <attribute name="PolicyConfig" serialDataType="jbxb">
-      <jaas:policy xsi:schemaLocation="urn:jboss:security-config:4.1 resource:security-config_4_1.xsd"
-        xmlns:jaas="urn:jboss:security-config:4.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+      <jaas:policy xmlns:jaas="urn:jboss:security-config:4.1"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="urn:jboss:security-config:4.1 resource:security-config_4_1.xsd">
         <jaas:application-policy name="jbpm-console">
           <jaas:authentication>
             <jaas:login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
@@ -27,7 +37,7 @@
               </jaas:module-option>
 
               <jaas:module-option name="rolesQuery">
-                SELECT g.NAME_ ,'Roles'
+                SELECT g.NAME_ , 'Roles'
                 FROM JBPM_ID_GROUP g
                 JOIN JBPM_ID_MEMBERSHIP m ON g.ID_ = m.GROUP_
                 JOIN JBPM_ID_USER u ON m.USER_ = u.ID_
@@ -39,115 +49,4 @@
       </jaas:policy>
     </attribute>
   </mbean>
-
-  <!-- JBoss Cache service configuration for use with Hibernate -->
-  <mbean code="org.jboss.cache.TreeCache" name="org.jboss.jbpm:service=TreeCache,type=Hibernate">
-    <depends>jboss:service=Naming</depends>
-    <depends>jboss:service=TransactionManager</depends>
-
-    <!-- Configure the TransactionManager -->
-    <attribute name="TransactionManagerLookupClass">
-      org.jboss.cache.JBossTransactionManagerLookup
-    </attribute>
-
-    <!--
-       Node locking scheme:
-       OPTIMISTIC
-       PESSIMISTIC (default)
-    -->
-    <attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
-
-    <!--
-      Note that this attribute is IGNORED if your NodeLockingScheme above is OPTIMISTIC.
-
-      Isolation level:
-      SERIALIZABLE
-      REPEATABLE_READ (default)
-      READ_COMMITTED
-      READ_UNCOMMITTED
-      NONE
-      
-      Once a tx reads an item from the 2nd Level Cache, Hibernate caches it in the Session
-      object and does not go back to the 2LC for that same object. So READ_COMMITTED
-      should be enough. There is no benefit using REPEATABLE_READ.
-    -->
-    <attribute name="IsolationLevel">READ_COMMITTED</attribute>
-
-    <!--
-      Cache mode:
-      LOCAL
-      REPL_ASYNC
-      REPL_SYNC
-      INVALIDATION_ASYNC
-      INVALIDATION_SYNC
-
-      INVALIDATION_ASYNC is recommended for use with clustered second-level caches.
-    -->
-    <attribute name="CacheMode">LOCAL</attribute>
-
-    <!-- Name of cluster. Needs to be the same for all clusters, in order to find each other -->
-    <attribute name="ClusterName">TreeCache-Cluster</attribute>
-
-    <attribute name="ClusterConfig">
-      <config>
-        <UDP mcast_addr="230.1.2.3" mcast_port="43333" tos="8" ucast_recv_buf_size="20000000"
-          ucast_send_buf_size="640000" mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
-          loopback="false" discard_incompatible_packets="true" enable_bundling="true"
-          max_bundle_size="64000" max_bundle_timeout="30" use_incoming_packet_handler="true"
-          use_outgoing_packet_handler="false" ip_ttl="2" down_thread="false" up_thread="false" />
-        <PING timeout="2000" down_thread="false" up_thread="false" num_initial_members="3" />
-        <MERGE2 max_interval="100000" down_thread="false" up_thread="false" min_interval="20000" />
-        <FD_SOCK down_thread="false" up_thread="false" />
-        <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true" />
-        <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
-        <pbcast.NAKACK max_xmit_size="60000" use_mcast_xmit="false" gc_lag="0"
-          retransmit_timeout="300,600,1200,2400,4800" down_thread="false" up_thread="false"
-          discard_delivered_msgs="true" />
-        <UNICAST timeout="300,600,1200,2400,3600" down_thread="false" up_thread="false" />
-        <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
-          down_thread="false" up_thread="false" max_bytes="400000" />
-        <pbcast.GMS print_local_addr="true" join_timeout="3000" down_thread="false"
-          up_thread="false" join_retry_timeout="2000" shun="true" view_bundling="true" />
-        <FRAG2 frag_size="60000" down_thread="false" up_thread="false" />
-        <pbcast.STATE_TRANSFER down_thread="false" up_thread="false"
-          use_flush="false" />
-      </config>
-    </attribute>
-
-    <!-- Whether or not to fetch state on joining a cluster -->
-    <attribute name="FetchInMemoryState">false</attribute>
-
-    <!-- Time 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>
-
-    <!--
-      Indicate whether to use marshalling. Set this to true if you are running under a scoped
-      class loader, for instance, inside an application server. Default is "false".
-    -->
-    <attribute name="UseRegionBasedMarshalling">true</attribute>
-    <!-- Must match the value of "useRegionBasedMarshalling" -->
-    <attribute name="InactiveOnStartup">true</attribute>
-
-    <!--  Specific eviction policy configurations. This is LRU -->
-    <attribute name="EvictionPolicyConfig">
-      <config>
-        <attribute name="wakeUpIntervalSeconds">5</attribute>
-        <!-- Name of the DEFAULT eviction policy class. -->
-        <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
-        <!--  Cache wide default -->
-        <region name="/_default_">
-          <attribute name="maxNodes">5000</attribute>
-          <attribute name="timeToLiveSeconds">1000</attribute>
-        </region>
-        <!--  Do not ever evict modification timestamps -->
-        <region name="/TS">
-          <attribute name="maxNodes">0</attribute>
-          <attribute name="timeToLiveSeconds">0</attribute>
-        </region>
-      </config>
-    </attribute>
-  </mbean>
 </server>



More information about the jbpm-commits mailing list