<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

  <bean id="txProxyTemplate" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name="transactionManager"><ref bean="transactionManager"/></property>
    <property name="transactionAttributes">
      <props>
        <prop key="save*">PROPAGATION_REQUIRED</prop>
        <prop key="add*">PROPAGATION_REQUIRED</prop>
        <prop key="remove*">PROPAGATION_REQUIRED</prop>
      </props>
    </property>
  </bean>

  <bean id="myObjectService" parent="txProxyTemplate">
    <property name="target">
      <bean class="org.annotationmvc.service.MyObjectServiceImpl">
        <property name="myObjectDao"> <ref bean="myObjectDao" /></property></bean>
    </property>
  </bean>

</beans>
