I'm not too sure abuot "Transactions", I thought they were something to do with databases, but they appear to be something to do with EJBs....
Anyway, in one of my EJBs, I create a HibernateEntityManagerFactory. The createEntityManagerFactory() call fails with
13:10:09,203 ERROR [SchemaUpdate] could not complete schema update
java.sql.SQLException: You cannot commit during a managed transaction!
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:496)
at org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:334)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:129)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:295)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:414)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:575)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:410)
Something to do with the EJB starting a Transaction? How do I get the call to createEntityManagerFactory NOT to use a "ManagedTransaction"???