This content has been marked as final.
Show 6 replies
-
1. Re: XATests versus TransactionManager integration tests...
timfox Mar 10, 2009 4:16 PM (in response to clebert.suconic)What do you mean by transaction manager integration tests?... JBM doesn't use a transaction manager.
-
2. Re: XATests versus TransactionManager integration tests...
timfox Mar 10, 2009 4:20 PM (in response to clebert.suconic)There's no need for a transaction manager in any of our tests.
Instead, the test pretends to be the transaction manager calling start, end,, commit, rollback on the XAresource etc.
I think this is the way it is already done in BasicXATest. -
3. Re: XATests versus TransactionManager integration tests...
clebert.suconic Mar 10, 2009 4:23 PM (in response to clebert.suconic)"Tim Fox" wrote:
What do you mean by transaction manager integration tests?... JBM doesn't use a transaction manager.
Yes I know.
But when testing XA, should we only use our API directly, or should also test it through the TransactionManager? (which is what I meant by transactionmanager integation tests)
I was considering writing a test, where I would start two servers, enlist two Sessions and play with transactions and rollbacks. -
4. Re: XATests versus TransactionManager integration tests...
clebert.suconic Mar 10, 2009 4:24 PM (in response to clebert.suconic)"Tim Fox" wrote:
There's no need for a transaction manager in any of our tests.
Instead, the test pretends to be the transaction manager calling start, end,, commit, rollback on the XAresource etc.
I think this is the way it is already done in BasicXATest.
Ok.. that answers my question. I didn't see that before My last post.
Thanks -
5. Re: XATests versus TransactionManager integration tests...
timfox Mar 10, 2009 5:44 PM (in response to clebert.suconic)The JTA api is fairly simple and based largely on the XA spec.
We need to test the different combinations, of start, end, join, resume, forget etc.
I don't think there are that many combinations. -
6. Re: XATests versus TransactionManager integration tests...
timfox Mar 10, 2009 5:44 PM (in response to clebert.suconic)Recommendation read the XA, and JTA specs.