1 Reply Latest reply on Sep 23, 2008 4:27 AM by Andrew Dinn

    How to disable two-phase transactions?

    Sergei Makarov Newbie

      Hello!

      I'm using JBoss 4.2.1, MySQL Server 4.1, MySQL Connector 5.1.5.

      I have some session beans (EJB 2.1), attached to datasource #1 and one bean attached to datasources #1 and #2. When I'm using local-tx-datasource I have error "Could not enlist in transaction on entering meta-aware object!". But I can't using xa-datasource because MySQL 4.1 doesn't support XA.

      I do not need two-phase processing. How tell it to JBoss?

        • 1. Re: How to disable two-phase transactions?
          Andrew Dinn Master

           


          have some session beans (EJB 2.1), attached to datasource #1 and one bean attached to datasources #1 and #2.


          I do not need two-phase processing. How tell it to JBoss?


          These two statements do not add up. If you are using a transaction manager with multiple data sources then you need two phase processing. If you don't need two phase processing then you don't need transactions.

          If you do not understand this then I suggest you go back to college and enrol on course Transactions 101. Alternatively, read Mark Little's book, Java Transaction Processing: Design and Implementation (http://www.amazon.co.uk/Java-Transaction-Processing-Design-Implementation/dp/013035290X).