-->
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: Integrating hibernate with JINI transactions
PostPosted: Mon Mar 31, 2008 3:08 pm 
Newbie

Joined: Mon Mar 31, 2008 2:53 pm
Posts: 4
Hi All,

hopefully somebody can give me some pointers as i've found very little info and this combination.

We're implementing a system that stores data on an Oracle database through a hibernate backed persistence service that is backed by Jini. Jini has a transaction manager that we would like to be in control. However i'm having a bit of trouble hooking hibernate to that transaction manager.

I've currently made a ConnectionProvider that uses an XA datasource and registers that connection with the transaction.

I've made a TransactionManager that supplies JTA Transactions. Those transactions are then added as transactionparticipants to the jini transaction manager. Hibernate seems to register its cache/flushable thing (don't know the right term at the moment) as a synchronization on the jta transaction. When calling that synchronization as a part of the prepare of the two-phase commit hibernate seems to write everything to the database. We then call the XAresource.prepare from the XAConnection. On the commit we call the commit from the XAResource.

It seems to work intermittently and i'm however a brainfreeze on how to make this more stable and working better. I'm having the feeling i'm doing to much work to get this working.

Does anybody have any ideas for me to try out? When it all works i'll post the final code on the board as i think this will benefit anybody who wants to combine hibernate and jini...

Thanks in advance for all ideas and helpfull criticisms....

Regards,
Robert


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.