-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Data not committed
PostPosted: Thu Jun 13, 2013 3:42 am 
Newbie

Joined: Tue Sep 21, 2004 3:47 am
Posts: 8
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.