• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Transaction  RSS feed

 
Shasi Mitra
Ranch Hand
Posts: 101
Flex Java Spring
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!