Prevention from illegal connection use
Brought to you by:
jlessner
After allocation of a connection in CUBA, the developer
may keep a reference to this connection beyond a
transaction border and use it later *outside* this
transaction, even for data manipulations. These changes
are commited or rolled back at random, depending on
subsequent associations of the connection to other
transactions.
Keeping connections beyond transaction boundaries is of
course forbidden according to the EJB specification.
However, it would be helpful if CUBA would check, if a
connection is currently properly allocated when
performing any operations on it.