2 Replies Latest reply on Mar 4, 2009 6:35 PM by gjeudy

    XA transactions and seam transaction management

    pedrosena

      Hi Guys,


      I'm using XA transactions and I would like to know if I can configure a Seam transaction manager to deal with this transactions, like Spring does.


      I know that I can use spring transaction manager with Seam, but I'm not using Spring right now.


      Thanks,


      Pedro Sena

        • 1. Re: XA transactions and seam transaction management
          pedrosena

          I noticed that the problem was my environment.


          I'm using 2 different schemas but my users have access to both of them.


          This runs fine to select, but for non-idempotent operations it does not work.


          Regards,


          Pedro Sena

          • 2. Re: XA transactions and seam transaction management
            gjeudy

            is your problem solved? Are you using a JEE container?


            If you use:


            <transaction:ejb-transaction /> 

            in components.xml, Seam will ask the container to create a transaction. Therefore you can see Seam is managing the transaction lifecycle (begin, commit/rollback) but delegates the actual creation of the transaction to the container.


            That container transaction should allow XAResources join the current tx if your container is using a JTA tx manager.


            Then it's just a matter of configuring your different XA datasources and bind them to their respective PU.