mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Some minor configuration tweaks.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3284 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -12,6 +12,34 @@
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- A read only DefaultTransactionDefinition -->
|
||||
<bean id="readOnlyTransactionDefinition"
|
||||
class="org.springframework.transaction.support.DefaultTransactionDefinition">
|
||||
<property name="propagationBehaviorName">
|
||||
<value>PROPAGATION_REQUIRES_NEW</value>
|
||||
</property>
|
||||
<property name="isolationLevelName">
|
||||
<value>ISOLATION_READ_COMMITTED</value>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<value>true</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- A write DefaultTransactionDefinition -->
|
||||
<bean id="writeTransactionDefinition"
|
||||
class="org.springframework.transaction.support.DefaultTransactionDefinition">
|
||||
<property name="propagationBehaviorName">
|
||||
<value>PROPAGATION_REQUIRES_NEW</value>
|
||||
</property>
|
||||
<property name="isolationLevelName">
|
||||
<value>ISOLATION_READ_COMMITTED</value>
|
||||
</property>
|
||||
<property name="readOnly">
|
||||
<value>false</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- Datasource -->
|
||||
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
|
||||
@@ -36,6 +64,9 @@
|
||||
<property name="numHelperThreads" >
|
||||
<value>1</value>
|
||||
</property>
|
||||
<property name="idleConnectionTestPeriod">
|
||||
<value>60</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The SessionFactory for hibernate. -->
|
||||
|
@@ -12,6 +12,6 @@ hibernate.connection.isolation=2
|
||||
hibernate.default_batch_fetch_size=16
|
||||
hibernate.jdbc.batch_versioned_data=true
|
||||
hibernate.cache.use_second_level_cache=true
|
||||
hibernate.hbm2ddl.auto=update
|
||||
hibernate.hbm2ddl.auto=create
|
||||
# AVM specific properties.
|
||||
avm.initialize=false
|
||||
avm.initialize=true
|
||||
|
@@ -36,6 +36,9 @@
|
||||
<property name="numHelperThreads">
|
||||
<value>1</value>
|
||||
</property>
|
||||
<property name="idleConnectionTestPeriod">
|
||||
<value>60</value>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
<!-- The SessionFactory for hibernate. -->
|
||||
|
Reference in New Issue
Block a user