-->
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.  [ 1 post ] 
Author Message
 Post subject: Atomic operation
PostPosted: Thu Aug 05, 2010 4:46 am 
Newbie

Joined: Wed Sep 09, 2009 4:15 am
Posts: 14
Hello,
I need to send a SELECT than an UPDATE in a same transaction because it is something like a semaphore between servers, I would like to know how to do this with Hibernate (I'm newby of it).

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>


How can I do? Thank you very much.


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

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.