-->
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.  [ 6 posts ] 
Author Message
 Post subject: Transactions
PostPosted: Mon Jul 04, 2005 8:33 pm 
Beginner
Beginner

Joined: Mon Sep 06, 2004 9:36 am
Posts: 35
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 2.17

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:

I am looking for any good reading on Transactions and how Hibernate manages them. Does Hibernate uses JTA only when the transaction involves more than 1 database? What about bean-managed transactions?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 12:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Hibernate delegates Transactions to an external manager. This maybe the JDBC driver, OTM or even JTA layer (which could be a CMT engine). It all depends on the configuration and environment hibernate is operating within.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 4:03 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This is well explained in the reference documentation, there is a whole new chapter which took me several days to write. Read it! And read this:

http://www.hibernate.org/ForumMailingli ... AskForHelp


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 5:18 pm 
Beginner
Beginner

Joined: Mon Sep 06, 2004 9:36 am
Posts: 35
david wrote:
Hibernate delegates Transactions to an external manager. This maybe the JDBC driver, OTM or even JTA layer (which could be a CMT engine). It all depends on the configuration and environment hibernate is operating within.


So Hibernate does not use bean-managed transactions at all?

Suppose its a single database environment. Will Hibernate use JDBC or JTA (by default)? For a multiple database environment what is the default strategy?

Will the configuration we specifies, always overrides Hibernate's even if our configuration is not the best solution?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 05, 2005 5:21 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Read the documentation!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 7:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
See: http://www.hibernate.org/hib_docs/v3/reference/en/html/transactions.html


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

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.