-->
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: Dummy transaction manager
PostPosted: Tue May 10, 2005 9:24 am 
Newbie

Joined: Mon Sep 06, 2004 3:11 pm
Posts: 8
Does Hibernate have a dummy transaction manager that I can use? We need the read/write capabilities of JBossCache but we don't need the app server overhead. I thought I read somewhere that one was available.

JBoss has confirmed that JBossCache is not XA compliant. Why is it necessary for Hibernate and JBossCache to be transactional? How does it even work? Does Hibernate manage rollback when there is a failure?

This issue came up when I was trying to integrate a lightweight java transaction manager (no app server) with Hibernate. My company has an internal utilties group that had created one, apparently because other groups require it.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 10:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The 3.0 testsuite has a *very* simplified TransactionManager used for some of the tests; you can take a look at that. It is in org.hibernate.test.tm


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 12:09 pm 
Newbie

Joined: Mon Sep 06, 2004 3:11 pm
Posts: 8
Thanks. I'll take a look at it.

A couple of things that I've picked up in case anyone else has the same problem that I have.

- JBossCache has a DummyTransactionManager as well. But it's not useful since it's truly a dummy. It doesn't map to a database transaction.

- Ben Wang in the JBoss forum pointed me towards JOTM. An open source Java Transaction Manager used in JoNAS. Looks like it could be useful.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 12:50 pm 
Newbie

Joined: Mon Sep 06, 2004 3:11 pm
Posts: 8
Wow, a little search goes a long way. There is already a JOTMTransactionManagerLookup class in Hibernate.

In addition, the following thread,
http://forum.hibernate.org/viewtopic.ph ... light=jotm

deals with the one sticky issue that I have which is, my DBAs won't allow our Sybase 12.5 to be a XA resource. I can get around it by setting
hibernate.transaction.factory_class =
net.sf.hibernate.transaction.JDBCTransactionFactory.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 10, 2005 3:10 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Tyrex is another open source TM. I've used both in the past. Both are ok.


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.