Announcement Announcement Module
Collapse
No announcement yet.
Transaction not commited (autocomit = false) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaction not commited (autocomit = false)

    Hello

    I am using Hibernate in spring and here is snippet from my applicationcontext

    <bean id="objectaccess" class="com.csc.fs.elvis.om.ObjectAccessImpl">
    <property name="hibernateTemplate"><ref bean="hibernateTemplate"/></property>
    </bean>

    <!-- Hibernate Transaction Manager Definition -->
    <bean id="transactionManager" class="org.springframework.orm.hibernate3.Hibernat eTransactionManager">
    <property name="sessionFactory"><ref local="sessionFactory"/></property>
    </bean>

    <bean id="oatrx" class="org.springframework.transaction.interceptor .TransactionProxyFactoryBean">
    <property name="transactionManager"><ref local="transactionManager"/></property>
    <property name="target"><ref local="objectaccess"/></property>
    <property name="transactionAttributes">
    <props>
    <prop key="retrieve*">PROPAGATION_REQUIRED</prop>
    <prop key="update*">PROPAGATION_REQUIRED</prop>
    <prop key="delete*">PROPAGATION_REQUIRED</prop>
    <prop key="store*">PROPAGATION_REQUIRED</prop>
    </props>
    </property>
    </bean>




    The transaction is not getting commited when I set autocommit = false .

    Any help is appreciated

    Thanks
    Sunil
Working...
X