-->
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.  [ 5 posts ] 
Author Message
 Post subject: Need for JBossTransactionManagerLookup?
PostPosted: Wed Mar 09, 2005 4:09 pm 
Newbie

Joined: Tue Feb 22, 2005 4:10 pm
Posts: 19
On top of page 52, the books lists the end of the hibernate configuration file. There, it lists the property "transaction.manager_lookup_class".

As far as I understood from the pages before, if hibernate.connection.factory_class property is not specified, the default will be assume of JDBCTransactionFactory.

If I understand correctly, the difference between JDBCTransactionFactory and JTATransactionFactory is that JTAxxx can be used in a full blown application server in the CMT context, while JDBCxxx can't be.

If my understanding is correct, then wouldn't having JDBCxxx infer that no "transaction.manager_lookup_class" property is even needed? Isn't that property only there to tell Hibernate which app specific class to use to plug into the JTA of that app server?

Thank you,
NG


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 4:46 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Correct


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 5:11 pm 
Newbie

Joined: Tue Feb 22, 2005 4:10 pm
Posts: 19
christian wrote:
Correct


Ok, so they basically should have taken that line out and forgot... Whatever. Just wanted to make sure I wasn't misunderstanding anything.

Thanks for the reply.
NG


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 09, 2005 5:33 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
No, the config files shown are OK. If you switch to JTA connection provider you also specify a JTA TM lookup.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 11, 2005 2:19 pm 
Newbie

Joined: Tue Feb 22, 2005 4:10 pm
Posts: 19
christian wrote:
No, the config files shown are OK. If you switch to JTA connection provider you also specify a JTA TM lookup.


Well, I wasn't saying that the config file is not OK. All I was saying that in its current form it is confusing. Since the connection.factory_class is omitted, JDBC is assumed. If so, no reason AT ALL to specify JTA TM lookup. It just clouds the matter.

IMHO, for clarity sake, I would either specify the connection.factory_class or omit JTA TM lookup.

It's just confusing what you are trying to show this way.

Thanks,
NG.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.