blob: 20a584408f38c5c8eecf1d2661bf8bfed2980ee9 [file] [log] [blame]
Clement Escoffierea9dac42009-06-21 09:34:37 +00001<ipojo xmlns:tr="org.apache.felix.ipojo.transaction">
2 <component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="requires-ok">
3 <provides/>
4 <requires field="foo"/>
5 <tr:transaction field="transaction">
Clement Escoffiera768bed2010-09-11 10:00:14 +00006 <transactional method="doSomethingGood"/>
7 <transactional method="getCurrentTransaction"/>
8 <transactional method="doSomethingBad"/>
9 <transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException"/>
10 <transactional method="doSomethingLong"/>
Clement Escoffierea9dac42009-06-21 09:34:37 +000011 </tr:transaction>
12 </component>
13
14 <component classname="org.apache.felix.ipojo.transaction.test.component.FooDelegator" name="requires-cb">
15 <provides/>
16 <requires field="foo" />
17 <tr:transaction field="transaction" onCommit="onCommit" onRollback="onRollback">
Clement Escoffiera768bed2010-09-11 10:00:14 +000018 <transactional method="doSomethingGood"/>
19 <transactional method="getCurrentTransaction"/>
20 <transactional method="doSomethingBad"/>
21 <transactional method="doSomethingBad2" norollbackfor="java.lang.UnsupportedOperationException"/>
22 <transactional method="doSomethingLong"/>
Clement Escoffierea9dac42009-06-21 09:34:37 +000023 </tr:transaction>
24 </component>
25</ipojo>