• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SchemaUpdate during Deployment

 
Thomas Bauer
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I use Hibernate3 and want to integrate it into my EAP.
I created this HibernateUtil as in the hibernate docs and modified it to od a SchemaUpdate.execute(true,true) if it's the first time and a SessionFactory needs to be created.

An exception is thrown during the execute method.
It says something like "You mustn't do a commit in a handled transaction".
Well I understand that hibernate joins the current transaction (Using JTA? I did not configure any transaction behaviour) (as the HibernateUtil is called from a SessionBean)

How can I fix this?
I use JBoss 3.2.6

regards,

Thomas
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic