I have declarative transaction defined in the service layer as an example below.
<!-- data tracking service -->
<bean id="myDataTrackingService" parent="txProxyTemplate" >
<property name="target">
<bean class="com.xxx.service.DataTrackingServiceImpl"></bean>
</property>
<property name="transactionAttributes">
<props>
<prop key="find*">PROPAGATION_REQUIRED,-Exception</prop>
<prop key="save*">PROPAGATION_REQUIRED,-Exception</prop>
<prop key="reprocessEDD">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
I have 3 services:
Service 1:
Insert();
Update();
Service 2:
Insert();
Update();
Service 3:
service1.Insert();
service2.update();
I am not quite sure how to implement transaction control in service 3 as service1 & service2 have individual transactions defined.
Is it possible to do something like this?? Any help is appreciated..


Reply With Quote