[jboss-user] [JBoss Seam] - JTA transactions

breako do-not-reply at jboss.com
Fri Dec 21 06:23:53 EST 2007


Hi,
I am using a Seam managed EntityManaged and configured the persistence unit to use JTA transactions.


  |    <persistence-unit name="bookingDatabase" transaction-type="JTA">
  |       <provider>org.hibernate.ejb.HibernatePersistence</provider>
  |       <jta-data-source>java:/DefaultDS</jta-data-source>
  |       <properties>
  |          <property name="hibernate.hbm2ddl.auto" value="create-drop"/>
  |          <property name="hibernate.show_sql" value="true"/>
  |          <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
  |          <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
  |       </properties>
  |    </persistence-unit>
  | 

My backing bean, is using conversation scope.
All works fine, I am just wondering if in the middle of a request, I wish to call out to another party who wishes to join the transaction and update another database (e.g. a legacy database). 

What is the best way to do this?Is it just a matter of that party using the same transaction manager or is there something extra special I have to do?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114948#4114948

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114948



More information about the jboss-user mailing list