hello
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
like
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
transaction
regards
sameer