jsr107/jsr107spec — Issue #28: getUserTransaction returning UserTransaction is confusing
Author: yannis666
Created: 2011-10-21 21:53:17+00:00
State: open

There is danger of confusion with the UserTransaction returned from JNDI:
UserTransaction utxg = jndiContext.lookup(“java:comp/UserTransaction”);
from spec.

Confusion could be avoided if we introduced (say)
LocalTransaction extends UserTransaction
and made signature
LocalTransaction getUserTransaction()