1 Reply Latest reply on May 14, 2003 6:56 AM by davidjencks

    XADatasource

    sameer_inn


      i have used XADataSource with non-xa driver ie
      'OracleDriver' for oracle 8i under weblogic it's working fine

      when i used the same configuration like
      under jboss3.2.0 i have edited oracle-xa-ds.xml
      file and
      instead of specifying XADriver i have specified
      <xa-datasource-class>oracle.jdbc.driver.OracleDriver</xa-datasource-class>

      it's throwing java.lang.ClassCastException: oracle.jdbc.driver.OracleDriver.

      could u tell me wheather we can used non-XaDriver
      for XADataSource under jboss as it's possible in weblogic?

        • 1. Re: XADatasource
          davidjencks

          From your description I would guess that wl is solving the "how do I use a non-xa database" problem the way jboss did in 2.x, by wrapping it in a fake xa datasource.

          In jboss 3.x+ we use the local transaction jca wrapper for non-xa drivers. So, use oracle-ds.xml not oracle-xa-ds.xml.

          Providing a wrapper that exposes an XAResource does not give the underlying driver xa semantics, no matter how you do it. If you need 2pc, use the oracle xa driver.