javaee / ejb-spec

See javax.ejb project for API. Contains legacy issues only.
https://github.com/javaee/javax.ejb
6 stars 1 forks source link

Allow discovery of rollback cause #114

Open glassfishrobot opened 11 years ago

glassfishrobot commented 11 years ago

It would be nice if one could find the cause of a transaction's being marked for rollback.

Currently one can ask an EJBContext if its rollback-only status has been set. But while debugging one may not understand exactly why the transaction has rolled back.

Nine times out of ten the root cause is a RuntimeException of some kind that was thrown and either hidden or otherwise obscured. What if EJBContext could give you this? Something like EJBContext.getRollbackException() or something similar? The idea would be that the exception in question is the reason that the transaction was marked for rollback.

Affected Versions

[Future version]

glassfishrobot commented 11 years ago

Reported by @ljnelson

glassfishrobot commented 11 years ago

@ljnelson said: Meant to assign a Minor priority to this.

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA EJB_SPEC-114