-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Cannot call Connection.commit in distributed transaction.
PostPosted: Mon Aug 30, 2010 11:41 am 
Newbie

Joined: Wed Sep 09, 2009 4:15 am
Posts: 14
Hello i have another big trouble with Hibernate.
I have this configuration:
Code:
    <bean id="transactionManager"
      class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
   </bean>
   
   <bean id="baseBusinessService" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
      <property name="transactionManager" ref="transactionManager" />
      <property name="transactionAttributes">
         <props>
            <prop key="*">PROPAGATION_REQUIRED,-Throwable</prop>
         </props>
      </property>
   </bean>
   


When i force a transaction commit (i need to control a shared database semaphore)
Code:
Transaction tx=getSession().beginTransaction();
...
tx.commit();

I get this error:
Cannot call Connection.commit in distributed transaction. Transaction Manager will commit the resource manager when the distributed transaction is committed.

Can you help me to understand why?
Thank you.


Top
 Profile  
 
 Post subject: Re: Cannot call Connection.commit in distributed transaction.
PostPosted: Tue Aug 31, 2010 6:48 am 
Newbie

Joined: Wed Sep 09, 2009 4:15 am
Posts: 14
Someone can help me, please?
Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.