[
https://issues.apache.org/jira/browse/OPENEJB-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jean-Louis MONTEIRO closed OPENEJB-298.
---------------------------------------
Resolution: Fixed
Tested in TCK as far as I know, so it should work now.
> Cannot access an ejb if the transaction is marked rollback only before any
> ejb access
> -------------------------------------------------------------------------------------
>
> Key: OPENEJB-298
> URL: https://issues.apache.org/jira/browse/OPENEJB-298
> Project: OpenEJB
> Issue Type: Bug
> Affects Versions: (not version related)
> Reporter: Dain Sundstrom
> Fix For: (not version related)
>
>
> If you start a tx, mark it rollback only and then call your first EJB, the
> call with fail because OpenEJB. The problem is due to the application server
> needing to register a synchronization handler so it can call after commit on
> session beans implementing SesssionSynchronization. The JTA spec, says that
> transaction.registerSynchronization must throw a RollbackException if the tx
> is marked rollback only.
> At the very least we should throw a better exception.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira