blob: d91aa5890ea0dfd59c7e08d14698d2a0034bbaca [file] [log] [blame]
<ipojo xmlns:tr="org.apache.felix.ipojo.transaction">
<component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="requiresnew-ok">
<provides/>
<requires field="foo"/>
<tr:transaction field="transaction">
<transactionnal method="doSomethingGood" propagation="requiresnew"/>
<transactionnal method="getCurrentTransaction" propagation="requiresnew"/>
<transactionnal method="doSomethingBad" propagation="requiresnew" exceptiononrollback="true"/>
<transactionnal method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="requiresnew"/>
<transactionnal method="doSomethingLong" propagation="requiresnew"/>
</tr:transaction>
</component>
<component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="requiresnew-cb">
<provides/>
<requires field="foo" />
<tr:transaction field="transaction" onCommit="onCommit" onRollback="onRollback">
<transactionnal method="doSomethingGood" propagation="requiresnew"/>
<transactionnal method="getCurrentTransaction" propagation="requiresnew"/>
<transactionnal method="doSomethingBad" propagation="requiresnew"/>
<transactionnal method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="requiresnew"/>
<transactionnal method="doSomethingLong" propagation="requiresnew"/>
</tr:transaction>
</component>
</ipojo>