-->
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: Hibernate early db transaction "commit" CMT/OC4j
PostPosted: Wed Oct 25, 2006 9:45 am 
Newbie

Joined: Wed Oct 25, 2006 9:02 am
Posts: 1
hiernate version - Hibernate 3.0
We use hibernate with Oracle J2ee container Oc4j 1012.

We have some troubles during transactions, that the hibernate session is synchronized with DB in a way the updated data are "commited" to the db before transaction is finished. This situation happens during transaction and when some error later occures, rollbacked are only some of the data.

We use CMT session beans - all transaction logic is managed declaratively. That means RuntimeExccption or SessionContext session.setRollbackOnly() cant invoke transaction rollback.

There is no code, no call over BusinessDelegate to another session bean (possible point to open another).

Do you have any idea what can involve this early flush out of DB transaction.

-------------------------------------
hibernate.cnf.xml
<session-factory>
<!-- properties -->
<property name="connection.datasource">jdbc/JachymDS</property>
<property name="dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="show_sql">false</property>
<property name="use_outer_join">false</property>
<property name="transaction.manager_lookup_class">cz.itsys.bc.business.util.OC4jTransactionManagerLookup</property>

-------------------------------------
lookup manager
public class OC4jTransactionManagerLookup extends JNDITransactionManagerLookup {

/**
* @see JNDITransactionManagerLookup#getName()
*/
public String getName() {
return "java:comp/pm/TransactionManager";
}

/**
* Returns jndi name under which is UserTransaction bound.
* @return jndi name under which is UserTransaction bound.
*/
public String getUserTransactionName() {
return "java:comp/UserTransaction";
}


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.