2 Replies Latest reply on Sep 22, 2006 11:37 AM by wandi

    About XA Datasources (and transaction-service.xml)

      Hi Friends ;)

      I'm on my first steps using XA connections and I have some doubts. Can anybody help me? First off all, Im using JBoss 4.0.4GA and I create a XA datasource, inside the JBoss site example I read this:

      "DO NOT FORGET TO SET Pad=true IN transaction-service.xml"

      My question is... where can I find an template for this XML and where I need put it? I'm using JBoss 4.0.4GA (EJB3 install) and I can't find this file =(.

        • 1. Re: About XA Datasources (and transaction-service.xml)
          weston.price

          The comments are misleading.

          First, what RDBMS are you using Oracle? The 'pad' option was added only as a workaround for an Oracle bug. This appears to have been resolved in later releases of the Oracle JDBC driver (10 Release 2). To set this you would uncomment the line in the jboss-service.xml file in the XidFactory section. Note, this file can be found in your server/conf directory:

          
           <mbean code="org.jboss.tm.XidFactory"
           name="jboss:service=XidFactory">
           <!--attribute name="Pad">true</attribute-->
           </mbean>
          
          
          


          Again, if you are not using Oracle, or using the latest Oracle release, this is not necessary.

          Please take a look at the JCA Faq referenced by the sticky thread at the top of this forum as well.




          • 2. Re: About XA Datasources (and transaction-service.xml)

            Thank you little brother ;)
            Im using the new Oracle driver version.