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: Hibernate Transaction commit and Treecache Replication
PostPosted: Thu Jun 02, 2005 5:44 am 
Newbie

Joined: Thu Jun 02, 2005 5:03 am
Posts: 15
I have plugged in TreeCache in hibernate. To retrieve data from database i have coded -

Session s = SESSION_FACTORY.openSession();
Transaction txn = s.beginTransaction();
TTkopOper tTkopOper = (TTkopOper) session.get(TTkopOper.class, operId);
txn.commit();

When i try to retrieve the data from database, the TreeCache.put() method is called on every call to Session.get(). The local cache is updated prior to commiting the transaction whereas cache replication takes place when transaction is commited.

I have the following queries -
1. How is TreeCache notified when a transaction commits. Is it notified while transaction is commiting or after transaction has commited.
2. Is TreeCache performing cache replication in the current transaction or is initiating a separate transaction of its own.
3. If database commit fails, is local cache and cache replication rolled back.


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.