[jbpm-commits] JBoss JBPM SVN: r6528 - jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service.
do-not-reply at jboss.org
do-not-reply at jboss.org
Fri Jul 23 12:47:23 EDT 2010
Author: alex.guizar at jboss.com
Date: 2010-07-23 12:47:23 -0400 (Fri, 23 Jul 2010)
New Revision: 6528
Modified:
jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml
Log:
JBPM-2916 update tree cache configuration to match the recommendation from the hibernate-jbc-cacheprovider project
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-23 12:28:26 UTC (rev 6527)
+++ jbpm3/branches/jbpm-3.2-soa/modules/distribution/src/main/resources/service/jboss-service.xml 2010-07-23 16:47:23 UTC (rev 6528)
@@ -3,6 +3,14 @@
<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">
+ <depends optional-attribute-name="LoginConfigService">
+ jboss.security:service=XMLLoginConfig
+ </depends>
+
+ <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">
@@ -11,11 +19,13 @@
<jaas:login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule"
flag="required">
<jaas:module-option name="dsJndiName">java:JbpmDS</jaas:module-option>
+
<jaas:module-option name="principalsQuery">
SELECT PASSWORD_
FROM JBPM_ID_USER
WHERE NAME_=?
</jaas:module-option>
+
<jaas:module-option name="rolesQuery">
SELECT g.NAME_ ,'Roles'
FROM JBPM_ID_GROUP g
@@ -28,18 +38,9 @@
</jaas:application-policy>
</jaas:policy>
</attribute>
- <depends optional-attribute-name="LoginConfigService">
- jboss.security:service=XMLLoginConfig
- </depends>
- <depends optional-attribute-name="SecurityManagerService">
- jboss.security:service=JaasSecurityManager
- </depends>
</mbean>
- <!--
- Cache service configuration that serves as the Hibernate second level cache. Use with
- JBossCache >= 1.3.0 ONLY!!!
- -->
+ <!-- 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>
@@ -49,81 +50,104 @@
org.jboss.cache.JBossTransactionManagerLookup
</attribute>
- <!-- Node locking scheme: PESSIMISTIC (default), OPTIMISTIC -->
+ <!--
+ Node locking scheme:
+ OPTIMISTIC
+ PESSIMISTIC (default)
+ -->
<attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
<!--
- Node locking isolation level: SERIALIZABLE, REPEATABLE_READ (default), READ_COMMITTED,
- READ_UNCOMMITTED, NONE (ignored if NodeLockingScheme is OPTIMISTIC)
+ 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">REPEATABLE_READ</attribute>
+ <attribute name="IsolationLevel">READ_COMMITTED</attribute>
- <!-- Valid modes are LOCAL, REPL_ASYNC, REPL_SYNC, INVALIDATION_ASYNC, INVALIDATION_SYNC -->
- <!-- If query cache is disabled, the recommended cache mode is INVALIDATION_SYNC -->
- <attribute name="CacheMode">INVALIDATION_SYNC</attribute>
+ <!--
+ Cache mode:
+ LOCAL
+ REPL_ASYNC
+ REPL_SYNC
+ INVALIDATION_ASYNC
+ INVALIDATION_SYNC
- <!-- Whether each interceptor has an mbean registered to capture and display its statistics -->
- <attribute name="UseInterceptorMbeans">true</attribute>
+ 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">jBPM-Cache-Cluster</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 -->
<attribute name="ClusterConfig">
<config>
- <!-- UDP: in multihomed machines, set bind_addr 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" />
- <MERGE2 min_interval="10000" max_interval="20000" />
- <FD_SOCK />
- <VERIFY_SUSPECT timeout="1500" />
- <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800"
- max_xmit_size="8192" />
- <UNICAST timeout="600,1200,2400" />
- <pbcast.STABLE desired_avg_gossip="20000" />
- <FRAG frag_size="8192" />
- <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true"
- print_local_addr="true" />
- <pbcast.STATE_TRANSFER />
+ <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 to fetch state on joining a cluster -->
+ <!-- Whether or not to fetch state on joining a cluster -->
<attribute name="FetchInMemoryState">false</attribute>
- <!--
- Max time in milliseconds to wait until the initial state (the contents of the cache) are
- retrieved from existing members in a clustered environment
- -->
- <attribute name="InitialStateRetrievalTimeout">20000</attribute>
+ <!-- Time to wait until all responses for a synchronous call have been received -->
+ <attribute name="SyncReplTimeout">20000</attribute>
- <!-- Milliseconds to wait until all responses for a synchronous call have been received -->
- <attribute name="SyncReplTimeout">10000</attribute>
-
- <!-- Max number of milliseconds to wait for a lock acquisition -->
+ <!-- Max number of milliseconds to wait for a lock acquisition -->
<attribute name="LockAcquisitionTimeout">15000</attribute>
- <!-- Name of the eviction policy class -->
- <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</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>
- <!-- Maximum time an object is kept in cache regardless of idle time -->
- <attribute name="maxAgeSeconds">120</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
+</server>
More information about the jbpm-commits
mailing list