1 Reply Latest reply on Dec 18, 2002 11:46 AM by davidjencks

    can LocalTransaction optimization be disabled?

    mgrove

      the connector spec states that the LocalTransaction optimization can be used on a resource adapter with XATransaction transaction support when only 1 RM is involved in a transaction. some questions on this topic:

      * does JBoss implement the LocalTransaction optimization?
      * if so, can it be disabled? i don't mind if 1PC is used, just not LocalTransactions. the resource adapter i'm working with does not fully implement the LocalTransaction interfaces, and i have no desire to add it in.

      thanks. sorry if i missed this - didn't see the answer in this forum or in the docs.

        • 1. Re: can LocalTransaction optimization be disabled?
          davidjencks

          JBoss does not do local tx optimization when 1pc is possible.

          It does call XAResource.commit(xid, true) for 1pc when there is only one participant.

          If jboss appears to be looking for a LocalTransaction make sure you are using the XATxConnectionManager and not the LocalTxConnectionManager in your *-service.xml file. (or equivalent using TxConnectionManager)