Hi,
While using `broker.transaction() { ... }` I noticed that, after committing/rollbacking the transaction, O/R Broker doesn't reset connection's `autoCommit` property to its initial value - the connection stays in non auto-commit mode. Is this a feature or a bug?
Such behaviour may cause problems if the code assumes and indeed expects connection to be in auto-commit mode after invoking Broker's `transaction`.
Interestingly, it seems that Apache Commons DBCP resets the connection's `autoCommit` property by itself after connection is returned to the pool. On the other hand, Tomcat's Connection Pool does not (naturally, we use the latter).
The workaround is, of course, to use `broker.transactional(conn) {...}` and provide own `autoCommit` handling. It would be nicer, though, to let this responsibility fall on O/R Broker.
Cheers,
Dinko