1 Reply Latest reply on Dec 21, 2007 12:57 PM by Pete Muir

    JTA transactions

    Breako Beats Newbie

      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?