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)