-->
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.  [ 4 posts ] 
Author Message
 Post subject: Committing Read Only transactions
PostPosted: Thu Mar 29, 2012 2:32 am 
Newbie

Joined: Wed Jul 06, 2011 3:22 am
Posts: 5
This is more a generic question.

Can anybody tell me the purpose of committing READ - ONLY transactions ie., transactions that performs only read operations.

Commit - Synchronises the session to DB.For read only transaction the session reflects the state of DB.So what is the point in committing the read only transactions?

Thanks.

Regards
Senthil Kumar Sekar


Top
 Profile  
 
 Post subject: Re: Committing Read Only transactions
PostPosted: Fri Mar 30, 2012 4:43 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
So what is the point in committing the read only transactions?


The actual purpose is to terminate the current transaction.
There are only 2 possibilities to terminate a transaction: commit or rollback
In case of a read-only transaction it should be not difference whether you call commit or rollback.


Top
 Profile  
 
 Post subject: Re: Committing Read Only transactions
PostPosted: Fri Mar 30, 2012 5:19 am 
Newbie

Joined: Wed Jul 06, 2011 3:22 am
Posts: 5
Got it... So it is only ending the session.

No talk abt object synchronisation applies in this case?


Top
 Profile  
 
 Post subject: Re: Committing Read Only transactions
PostPosted: Fri Mar 30, 2012 5:49 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
No talk abt object synchronisation applies in this case?


Yes


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