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