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="requiresnew-ok"> |
| 3 | <provides/> |
| 4 | <requires field="foo"/> |
| 5 | <tr:transaction field="transaction"> |
| 6 | <transactionnal method="doSomethingGood" propagation="requiresnew"/> |
| 7 | <transactionnal method="getCurrentTransaction" propagation="requiresnew"/> |
| 8 | <transactionnal method="doSomethingBad" propagation="requiresnew" exceptiononrollback="true"/> |
| 9 | <transactionnal method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="requiresnew"/> |
| 10 | <transactionnal method="doSomethingLong" propagation="requiresnew"/> |
| 11 | </tr:transaction> |
| 12 | </component> |
| 13 | |
| 14 | <component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="requiresnew-cb"> |
| 15 | <provides/> |
| 16 | <requires field="foo" /> |
| 17 | <tr:transaction field="transaction" onCommit="onCommit" onRollback="onRollback"> |
| 18 | <transactionnal method="doSomethingGood" propagation="requiresnew"/> |
| 19 | <transactionnal method="getCurrentTransaction" propagation="requiresnew"/> |
| 20 | <transactionnal method="doSomethingBad" propagation="requiresnew"/> |
| 21 | <transactionnal method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException" propagation="requiresnew"/> |
| 22 | <transactionnal method="doSomethingLong" propagation="requiresnew"/> |
| 23 | </tr:transaction> |
| 24 | </component> |
| 25 | </ipojo> |