geronimo-dev mailing list archives

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

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

- TransactionEnlistingInterceptor.getConnection calls
transaction.enlistResource(xares)
- 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).

Thanks,
Florent

-- 
Florent Guillaume, Director of R&D, Nuxeo
Open Source, Java EE based, Enterprise Content Management (ECM)
http://www.nuxeo.com   http://www.nuxeo.org   +33 1 40 33 79 87

Mime
View raw message