hi all iam using DB26.1 as database and i have added DB2SWIT.dll file as external Resource manager to MQ Server as i want my queue manager to do 2 phase commit.
I have made this code:-
System.out.println("creating XA datasource ...");
// com.ibm.db2.jdbc.app.stdext.udb.DB2XADataSource ds = new com.ibm.db2.jdbc.app.stdext.udb.DB2XADataSource();
System.out.println("created XA datasource ...");
ds.setDatabaseName("MQ");
System.out.println("database name set for XA datasource ...");
com.ibm.db2.jdbc.app.stdext.javax.sql.XAConnection xacon = ds.getXAConnection("db2admin","db2admin");
System.out.println("creating xa connection ...");
System.out.println("XAResource value"+xacon.getConnection());
this does'nt give me any error however
when i use this
I would like you to enable XA Trace in the XA Stanza of the ini file. Looks like the connection handle is not being returned from the queue manager. Also, see if you have any errors being reposrted when you bring up the queue manager that points to XA errors.
Rajesh
_________________ ---------------------------------------------
IBM & SUN (J2EE) Certified Consultants,
http://www.MiddlewareOnline.com
A "SARVAM" Online Portal
http://www.SARVAM.com
---------------------------------------------
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum