Sachin,

You have to get datasource from j2ee server using jndi lookup to get xa behaviour.


Sachin Rohamare wrote:




Hi,

I am using JBosss-3.0.0 .
I am using StatelessSession beans.
I am using directly below code.

com.microsoft.jdbcx.sqlserver.SQLServerDataSource l_sqlServerDS = new com.microsoft.jdbcx.sqlserver.SQLServerDataSource();
l_sqlServerDS.setSelectMethod("Cursor");
l_sqlServerDS.setServerName("myServer");
l_sqlServerDS.setDatabaseName("MyDb");
l_sqlServerDS.setPortNumber(1433);

l_sqlServerDS.setUser("sa");
l_sqlServerDS.setPassword("sa");
conn = l_sqlServerDS.getXAConnection().getConnection();


Its not getting rollback if i throw ejb exception.

I am using

SQL2000 Server as Db.

Please send me mssql-xa-ds.xml config file that might help me.

--
Igor Fedorenko
Think smart. Think automated. Think Dynamics.
www.thinkdynamics.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to