0 Replies Latest reply on Apr 17, 2003 7:21 AM by sameer_inn

    XADataSource in distributed Transaction

    sameer_inn Newbie


      i am developing application for distribute transaction

      i have configured the XADatasource

      i want to use this XADatasource for both local and as well
      as distributed transaction

      now my problem is

      normally we get DataSource for normal DataSource registred
      at server

      DataSource ds=(DataSource)InitalContext.lookup("jndiName");

      now i have XADataSource how do invoke the method

      shall i go like

      XADataSource Xds=(XADataSource)InitalContext.lookup("jndiName");

      is this right way getting the Connection?
      please do specify how do i get connection from XADataSource

      and where do i specied setAutoCommit(false)for distributed