File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Transaction" Watch "Spring Transaction" New topic
Author

Spring Transaction

Shasi Mitra
Ranch Hand

Joined: Nov 27, 2008
Posts: 101

Hi, I have to "update" a table and get the same data from the table in one transaction. The problem here is, unless the "update " transaction is committed i cannot fetch the data. This is my code
<aop:config>
<aop:pointcut id="allServicesOperation" expression="execution(* com.interfaces.*Services.*(..))"/>
<aop:advisor advice-ref="transactionAdvice" pointcut-ref="allServicesOperation"/>
</aop:config>
I have the two statements in one method in my Services class.
I think ibatis is taking one connection each for update and select. How can i use the same connection object so that i can update and select the same data in the same transaction.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring Transaction