]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.hibernate/META-INF/spring/transaction.xml
Move server modules
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.hibernate / META-INF / spring / transaction.xml
index 7e6d0ad5c17b2e00b1762d1ddb786430ad609449..7d03b64e1bb9e32c3200034a733546116797957f 100644 (file)
@@ -8,7 +8,7 @@
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
 
        <!-- Transaction -->
-       <bean id="transactionManager"
+       <bean id="hibernateTransactionManager"
                class="org.springframework.orm.hibernate3.HibernateTransactionManager"
                lazy-init="false">
                <property name="sessionFactory" ref="sessionFactory" />
                <aop:advisor advice-ref="daoAdvice" pointcut-ref="daoTestTreeMethods" />
        </aop:config>
 
-       <tx:advice id="daoAdvice" transaction-manager="transactionManager">
+       <tx:advice id="daoAdvice" transaction-manager="hibernateTransactionManager">
                <tx:attributes>
                        <tx:method name="get*" propagation="REQUIRED" read-only="true" />
                        <tx:method name="list*" propagation="REQUIRED" read-only="true" />
                        <tx:method name="*" propagation="REQUIRED" />
                </tx:attributes>
        </tx:advice>
-<!-- 
+
        <aop:config>
                <aop:pointcut id="pointcut.services.allMethods"
                        expression="execution(* org.argeo.slc.services.*.*.*(..))" />
        </aop:config>
 
        <tx:advice id="advice.allMethodsRequired"
-               transaction-manager="transactionManager">
+               transaction-manager="hibernateTransactionManager">
                <tx:attributes>
                        <tx:method name="*" propagation="REQUIRED" />
                </tx:attributes>
        </tx:advice>
- -->
+
 </beans>
\ No newline at end of file