-->
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.  [ 2 posts ] 
Author Message
 Post subject: 2 transactions in one Session
PostPosted: Sat Mar 20, 2010 8:42 pm 
Newbie

Joined: Sat Mar 20, 2010 8:32 pm
Posts: 3
I am using Open Session In View Filter. My request handling needs to perform an update operation and ras well eturn a different data with lazy loaded data points. My "Update transaction" doesn't get flushed until the request is processed. I have read about configuring two transactions per session, one for update and the other for read. Can someone please tell me how to achieve this.
I am using Spring transaction interceptors. In effect the DAO's are called from a transaction interceptor but doesn't have any effect, since I am using the open session in view filter and the transaction is committed at the filter. Now in this case what is the point of using declarative transaction? Could you please explain me.


Top
 Profile  
 
 Post subject: Re: 2 transactions in one Session
PostPosted: Mon Mar 22, 2010 7:01 am 
Expert
Expert

Joined: Tue Jun 16, 2009 3:36 am
Posts: 990
Quote:
I have read about configuring two transactions per session


Where did you read this?


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