My favorites | Sign in
Project Home Downloads Issues Source
New issue   Search
  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, Mar 2, 2012
What version of the MyBatis are you using?

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

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

<bean id="sqlMapClient1"
      <property name="configLocation">
         <value>            classpath:test.xml
      <property name="useTransactionAwareDataSource">
      <property name="dataSource">
         <ref bean="dataSource" />
      <property name="transactionConfigProperties">
            <prop key="DefaultAutoCommit">false</prop>
            <prop key="SetAutoCommitAllowed">true</prop>

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

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