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"???

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955052#3955052

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955052

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to