Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335105

Summary: Make it easier to create XA transactions
Product: [Modeling] EMF Reporter: Eike Stepper <stepper>
Component: cdo.coreAssignee: Eike Stepper <stepper>
Status: CLOSED FIXED QA Contact: Eike Stepper <stepper>
Severity: enhancement    
Priority: P3 Keywords: noteworthy
Version: 4.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: Power to the People

Description Eike Stepper CLA 2011-01-23 05:24:08 EST
Make it easier to create XA transactions
Comment 1 Eike Stepper CLA 2011-01-23 05:48:59 EST
Formerly this was needed:

    CDOXATransaction xaTransaction = CDOUtil.createXATransaction();
    xaTransaction.add(CDOUtil.getViewSet(tx1.getResourceSet()));
    xaTransaction.add(CDOUtil.getViewSet(tx2.getResourceSet()));
    xaTransaction.add(CDOUtil.getViewSet(tx3.getResourceSet()));
    
Now:

	  CDOXATransaction xaTransaction = CDOUtil.createXATransaction(tx1, tx2, tx3);
Comment 2 Eike Stepper CLA 2011-01-23 05:49:58 EST
Committed revision 6896 to trunk
Comment 3 Eike Stepper CLA 2011-06-23 03:38:51 EDT
Available in R20110608-1407