Clement Escoffier | 46be6be | 2009-06-21 09:34:37 +0000 | [diff] [blame] | 1 | <ipojo xmlns:tr="org.apache.felix.ipojo.transaction"> |
| 2 | <component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="never-ok"> |
| 3 | <provides/> |
| 4 | <requires field="foo"/> |
| 5 | <tr:transaction field="transaction"> |
Clement Escoffier | 3559254 | 2010-09-11 10:00:14 +0000 | [diff] [blame] | 6 | <transactional method="doSomethingGood" propagation="never"/> |
| 7 | <transactional method="getCurrentTransaction" propagation="never"/> |
| 8 | <transactional method="doSomethingBad" propagation="never"/> |
| 9 | <transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="never"/> |
| 10 | <transactional method="doSomethingLong" propagation="never"/> |
Clement Escoffier | 46be6be | 2009-06-21 09:34:37 +0000 | [diff] [blame] | 11 | </tr:transaction> |
| 12 | </component> |
| 13 | |
| 14 | <component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="never-cb"> |
| 15 | <provides/> |
| 16 | <requires field="foo" /> |
| 17 | <tr:transaction field="transaction" onCommit="onCommit" onRollback="onRollback"> |
Clement Escoffier | 3559254 | 2010-09-11 10:00:14 +0000 | [diff] [blame] | 18 | <transactional method="doSomethingGood" propagation="never"/> |
| 19 | <transactional method="getCurrentTransaction" propagation="never"/> |
| 20 | <transactional method="doSomethingBad" propagation="never"/> |
| 21 | <transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="never"/> |
| 22 | <transactional method="doSomethingLong" propagation="never"/> |
Clement Escoffier | 46be6be | 2009-06-21 09:34:37 +0000 | [diff] [blame] | 23 | </tr:transaction> |
| 24 | </component> |
| 25 | </ipojo> |