Hi Paul,

The RelaxAutoCommit option appears to only allow transactional methods
to be called if a connection is not transactional.  From what I read,
it does not change the auto-commit value.  By default, auto-commit is
true for a connection per the JDBC spec.  I could have missed
something, but I did not see a MySQL connection property to change the
default for auto-commit.

When OpenJPA gets a connection it receives whatever auto-commit value
is set on the connection.  OpenJPA will however, set auto-commit to
false, if necessary, when you start a new transaction via tx.begin().
It will then change it back to the original value after a commit or
rollback.  IMHO, I don't think the two scenarios are bugs.

-Jeremy

Reply via email to