2013-03-04 71 views
1

我一次使用WSO2dss和Wso2 ESB插入任何表。這些都是依賴表如何我們可以ROLLBACK如果一個事務failed.my問題是我插入EMP1,EMP2,EMP3 我的數據正確插入EMP1和EMP2錯誤發生在插入EMP3時我怎麼可以使用WSO2 ..in甲骨文我們有NONXAENABLEDS我們如何在WSO2DSS或WSO2ESB中回滾事務

<sequence> 
        <payloadFactory> 
        <format> 
         <p:insert_emp2_operation xmlns:p="http://ws.wso2.org/dataservice"> 
          <xs:e_device xmlns:xs="http://ws.wso2.org/dataservice">$1</xs:e_device> 
          <xs:e_amount xmlns:xs="http://ws.wso2.org/dataservice">5000</xs:e_amount> 
          <xs:e_no xmlns:xs="http://ws.wso2.org/dataservice">450</xs:e_no> 
         </p:insert_emp2_operation> 
        </format> 
        <args> 
         <arg expression="//e_device/text()"/> 
        </args> 
        </payloadFactory> 
        <send> 
        <endpoint> 
         <address uri="http://192.168.1.201:9764/services/emp2_DataService/" format="soap11"/> 
        </endpoint> 
        </send> 
       </sequence> 
      </target> 

因爲同樣喜歡在一些其他表如何如果要啓用使用WSO2 DSS本身,你可以使用下面的步驟與回滾事務我可以回滾這一切

回答

1

。 如果您的相關表格在同一個數據庫中,那麼您可以在WSO2數據服務服務器中使用boxcarring feature,您可以在數據服務創建級別啓用boxcarring。如果你的表格分佈在不同的數據庫中,那麼你可以使用distributed transaction feature。但是,一旦啓用這兩項功能,就需要相應地更改代理服務。您可以檢查以下blog以獲取有關如何在使用WSO2 ESB啓用分佈式事務/ boxcarring時調用數據服務的更多詳細信息。

+0

我跟着你的博客,但它不工作,請通過這個http://httpdownload.csdn.net/15195319/how-we-can-rollback-the-transaction-in-wso2dss-or-wso2esb – Faisal 2014-01-14 11:55:31