• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Transaction

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic