]
Steve Ebersole closed HHH-1316.
-------------------------------
Closing stale resolved issues
SchemaUpdate : java.sql.SQLException: You cannot commit during a
managed transaction!
-------------------------------------------------------------------------------------
Key: HHH-1316
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1316
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.1
Environment: Hibernate 3.1 , Oracle 9i
Reporter: Kumar Matcha
SchemaUpdate gets a connection from the ConnectionProviderFactory, which returns a
connection based on the hibernate properties. When we use the following properties
hibernate.connection.datasource = java:/hibernateDS
hibernate.transaction.factory_class = org.hibernate.transaction.JTATransactionFactory
hibernate.transaction.manager_lookup_class =
org.hibernate.transaction.JBossTransactionManagerLookup
hibernate.current_session_context_class = jta
SchemaUpdate fails because you cannot call a commit on a managed transaction.
Either Schema update shouldnt be allowed during a managed transaction, by throwing some
exception, or commit should be disabled when using a managed transaction.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: