geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Guillaume>
Subject connector/txmanager enlistment failure
Date Wed, 13 Jun 2012 15:48:21 GMT

I'm wondering why no exception is raised in the following case:

- TransactionEnlistingInterceptor.getConnection calls
- TransactionImpl.enlistResource calls xaRes.start
- there's an XAException during start()
- TransactionImpl.enlistResource catches this, sets the transaction
rollback only, and returns false
- TransactionEnlistingInterceptor.getConnection does not check the
return value of transaction.enlistResource and returns

In the last step I would expect that if false is returned,
TransactionEnlistingInterceptor.getConnection would raise a new
ResourceException for instance (as is the case for other error cases).


Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)   +33 1 40 33 79 87

View raw message