Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335105 - Make it easier to create XA transactions
Summary: Make it easier to create XA transactions
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.core (show other bugs)
Version: 4.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Power to the People
Keywords: noteworthy
Depends on:
Blocks:
 
Reported: 2011-01-23 05:24 EST by Eike Stepper CLA
Modified: 2011-06-23 03:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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