-->
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.  [ 3 posts ] 
Author Message
 Post subject: Disable RDBMS-based Transactions
PostPosted: Fri Jul 22, 2005 10:02 am 
Newbie

Joined: Thu Jul 21, 2005 1:28 am
Posts: 4
Hibernate version: 3.0

Name and version of the database you are using: DB2/400 V5R3


I want to know if it is possible to use Transactions from Hibernate, but not using the transactions of my DBMS.

The reason is, that my database is using no transactions and I must not change it at all. So I get nice error-messages remembering me that the journaling is not activated.

Yours

Christian


Top
 Profile  
 
 Post subject: More Precise: Work with Hibernate without Transactions
PostPosted: Tue Jul 26, 2005 2:38 am 
Newbie

Joined: Thu Jul 21, 2005 1:28 am
Posts: 4
I think I have to specify my problem a little bit more:

My DBMS is a DB2 running on an AS400. The Files/Tables - how ever you'd like to call them - are also used by a lot of old RPG-programs running also on this AS400.

My problem is now, that these tables do not have activated journaling for transaction-management. (Apart from two tables I do not need at all) So I think it is obvious, that I could not simply activate transaction-management on this tables, because I don't know/think/can guarantee, that all these old programs will still run.

When I try to use these tables with Hibernate, I did it like mentioned in the examples with a transaction arround and a commit/rollback at the end. The error is mentioning, that my files are not in the same journal.

My (more precise) question is now:

Is there a way to use Hibernate without transactions or (better) is there a way to use Hibernate with transactions, but without Hibernate using the transaction mechanism of the DBMS?

I tried without starting a Transaction doing Queries on the database, but the result/error was the same.

Yours

Christian


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 26, 2005 2:58 am 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
i'm also working with a as400/db2 as "database" ;) and the files/tables are also accesed by RPG-Programs and we haven't got any problems with activated journaling for those tables ...

I'm not allowed to change anything, too, but activating the journaling was no problem ...

So give it a try on a test-schema :)

gtx
curio


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