Hi,
in my junit tests all works fine. Schema generation, insertion of data in hsql test db (i commit transactions manually). If I test my JPA application on JBoss 7.1.1 (hibernate 4.2.1, informix 11, JTA, CMT) there is no exception and the schema is generated but no data was inserted in db.
Hibernate logs very often in debug level:
DEBUG [org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl] (http--0.0.0.0-9090-2) Skipping JTA sync registration due to auto join checking
I got really stuck and have no idea what could be wrong. I configred the datasource in jboss with jta=true. I set the datasource name on request name with
props.put("javax.persistence.jtaDataSource", dsName);
when creating the EntityManagerFactory because on request time the datasource is known.
Any ideas?
Cheers Oliver
|