April 05
Prof. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Wiring a Service Object
n<bean id=“orderService" class="org.springframework.transaction.
n interceptor.TransactionProxyFactoryBean">
n <property name="transactionManager">
n <ref local=“myTransactionManager"/>
n </property>
n <property name="target"><ref local=“orderTarget"/></property>
n <property name="transactionAttributes">
n <props>
n   <prop key="find*">
n PROPAGATION_REQUIRED,readOnly,-OrderException
n   </prop>
n   <prop key="save*">
n PROPAGATION_REQUIRED,-OrderMinimumAmountException
n   </prop>
n   <prop key="update*">
n PROPAGATION_REQUIRED,-OrderException
n   </prop>
n </props>
n </property>
n</bean>
TODO -Make sure to discuss naming methods with consistent names and how to handle rollbacks for a bean:  <prop key="add*">PROPAGATION_REQUIRED,-PortalException</prop>

- TransactionAttributeEditor - A "+" before an exception name substring indicates that transactions should commit even if this exception is    thrown; a "-" that they should roll back.  RuntimeExceptions will automatically runback when encountered even if they are not declared.