My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 535: Transaction not getting committed with commitTransaction
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by swati...@gmail.com, Mar 2, 2012
What version of the MyBatis are you using?
ibatis/2.3.4

Please describe the problem.  Unit tests are best!
Need to do:

startTransaction
do some DB update
send request to other app
if response= success
commit ( this is not happening)
else
rollback

<bean id="sqlMapClient1"
      class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
      <property name="configLocation">
         <value>            classpath:test.xml
         </value>
      </property>
      <property name="useTransactionAwareDataSource">
         <value>true</value>
      </property>
      <property name="dataSource">
         <ref bean="dataSource" />
      </property>
      <property name="transactionConfigProperties">
         <props>
            <prop key="DefaultAutoCommit">false</prop>
            <prop key="SetAutoCommitAllowed">true</prop>
         </props>
      </property>
   </bean>

sqlMapConfig.xml has entry:
   <transactionManager type="JDBC" commitRequired="true" >
      <dataSource type="JNDI">
         <property name="DataSource" value="java:comp/env/jdbc/vision/workflow/cbsns"/>
      </dataSource >
   </transactionManager>

The values are not getting committed

What is the expected output? What do you see instead?
commit should work


Sign in to add a comment

Powered by Google Project Hosting